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()
}
