You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
370 B
17 lines
370 B
#!/usr/bin/env node
|
|
|
|
const program = require('commander');
|
|
const shell = require('shelljs');
|
|
|
|
const cmdList = ['publish', 'p'];
|
|
|
|
program
|
|
.version(require('../package').version, '-v, --version')
|
|
.command('publish <env>', 'publish code')
|
|
.alias('p')
|
|
.action(cmd => {
|
|
if (!cmdList.includes(cmd)) {
|
|
shell.exec('hive -h');
|
|
}
|
|
})
|
|
.parse(process.argv); |