martakostova / organic-angel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angel v0.2.9

Simple as task runner, however with extra-ordinary abilities, angel is a command line assistant.

Angel is derrives as concept from bots, like hubot. However it is for command line. It can be mapped also as the command line assistant.

Docs

Existing scripts and abilities

example in directory/myproject

1. create ./time.js file

module.exports = function(angel){
  angel.on("do something for :topic", function(angel, next){
    if(angel.cmdData.topic == "time")
      console.log("The time is "+(new Date()).toString())
    else
      console.error("sorry")
  })
}

### 2. create `./angel.json` file
{
  "scripts": [
    "./time.js"
  ]
}

### 3. create `./package.json` file
{
  "dependencies": {
    "organic-angel": "0.2.8"
  }
}

### Finally at the command line
$ npm install organic-angel -g
$ angel do something for time

Thanks to

organic

https://github.com/varnalab/node-organic

underscore

http://underscorejs.org

async

https://github.com/caolan/async

string-template

https://github.com/Matt-Esch/string-template

home-dir

https://github.com/scottcorgan/home-dir

About