forked from tj/commander.js
/
pm
executable file
·18 lines (16 loc) · 845 Bytes
/
pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env node
var program = require('../../');
program
.version('0.0.1')
.command('install [name]', 'install one or more packages').alias('i')
.command('search [query]', 'search with optional query').alias('s')
.command('cache', 'actions dealing with the cache').alias('c')
.command('echo', 'echo arguments')
.command('list', 'list packages installed').alias('lst')
.command('listen', 'listen for supported signal events').alias('l')
.command('publish', 'publish or update package').alias('p')
.command('default', 'default command', { hidden: true, isDefault: true })
.command('specifyInstall', 'specify install subcommand', { executableFile: 'pm-install' })
.command('specifyPublish', 'specify publish subcommand', { executableFile: 'pm-publish' })
.command('silent', 'silently succeed')
.parse(process.argv);