mirror of https://github.com/codefeathers/w
w-cli spins up new WordBox instances. Check out https://github.com/codefeathers/WordBox
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.
19 lines
434 B
19 lines
434 B
#!/usr/bin/env node
|
|
|
|
const program = require('commander');
|
|
|
|
const wordbox = require('./lib/api');
|
|
|
|
program.version('1.0.2');
|
|
|
|
program.command('new <appname> [options...]')
|
|
.description('Create new WordBox app')
|
|
.action((appname, options) => {
|
|
wordbox.newapp(appname, options)
|
|
});
|
|
|
|
program.command('-h, --help')
|
|
.description('Show w-cli help')
|
|
.action(() => console.log('Show w-cli help'));
|
|
|
|
program.parse(process.argv);
|
|
|