@wep2/cli
Version:
Command line for Wepublish Editor 2
20 lines (17 loc) • 463 B
text/typescript
import {program} from 'commander'
import {install} from './commands/install'
import {update} from './commands/update'
program
.description('Wepublish Editor 2 cli')
.option('-i, --install <project-name>', 'Install Wepublish Editor 2')
.option('-u, --update', 'Install Wepublish Editor 2')
.parse(process.argv)
const commands = program.opts()
// INSTALL
if (commands.install) {
install(commands.install)
}
// UPDATE
if (commands.update) {
update()
}