0.1.2 • Published 6 years ago

easy-cmd v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

easy-cmd

Easy to build command tool.

npm install easy-cmd --save-dev

Usage

bin/xxx.js

#!/usr/bin/env node
const cli = require('easy-cmd')
cli.parse()

command/sub-cmd.js

exports.options = {
  desc: 'command description.'
}

exports.run = function* (argv, cmd) {
  // execute node module
  yield cmd.fork('module-path', args, options)
}
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago