0.1.2 • Published 11 years ago
clijs v0.1.2
Tower cli
Tower cli provides a standard interface for creating cli utilities.
Installation
Npm:
npm install tower-cliGetting Started
Require cli:
var cli = require('tower-cli');Create a new cli:
var todo = cli('todo');Add options to the cli:
todo
.option('--foobar')
.option('--dev');Add a new command to the cli:
todo.command('create {name}', function(name) {
// Do something with `name`.
});Run the cli:
todo.run(process.argv);That will parse the arguments and run the appropriate command.
Testing
make test # which runs `mocha`License
MIT
0.1.2
11 years ago