Starting kit for Commander.js CLI's
Creating a new command:
api/example.js
function action(argument, options){
console.log("Example:",argument)
}
module.exports = function(program,utilities)
{
program
.command('example [argument]')
.description('Prints argument to screen')
.action(action)
}
- Commander.js by TJ