lib/cli.js
function Command (name, cli, action) {
  if (!(this instanceof Command)) {
    return new Command(name, cli, action)
  }
  this.name = name
  this.cli = cli
  this.action = action
}
function Command (name, cli, action) {
  if (!(this instanceof Command)) {
    return new Command(name, cli, action)
  }
  this.name = name
  this.cli = cli
  this.action = action
}
function Command ( name , cli , action ) { if ( ! ( this instanceof Command ) ) { return new Command ( name , cli , action ) } this . name = name this . cli = cli this . action = action }
The argument-parsing and action components of a CLI command are separated so that the CLI
can both be imported from other modules and launched via PM2
The argument - parsing and action components of a CLI command are separated so that the CLI can both be imported from other modules and launched via PM2