How to use the commist.register function in commist

To help you get started, we’ve selected a few commist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nearform / autopsy / cmd.js View on Github external
#!/usr/bin/env node

var args = require('commist')()
  .register('ssh', require('./bin/ssh'))
  .register('start', require('./bin/start'))
  .register('stop', require('./bin/stop'))
  .register('setup', require('./bin/setup'))
  .register('remove', require('./bin/remove'))
  .register('status', require('./bin/status'))
  .parse(process.argv.splice(2))

if (args) { require('./bin/mdb')(args) }

commist

Build your commands on minimist!

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis

Popular commist functions