Enterprise-CMCS/macpro-mako

View on GitHub
bin/cli/src/run.ts

Summary

Maintainability
A
0 mins
Test Coverage
import yargs from "yargs";
import {
  deploy,
  destroy,
  docs,
  e2e,
  install,
  logs,
  openApp,
  openKibana,
  test,
  ui,
  getCost,
  watch,
  emails,
} from "./commands";

yargs
  .fail((msg, err) => {
    if (err) throw err;
    if (msg) console.error(msg);
    process.exit(1);
  })
  .command(watch)
  .command(deploy)
  .command(destroy)
  .command(docs)
  .command(e2e)
  .command(install)
  .command(logs)
  .command(openApp)
  .command(openKibana)
  .command(test)
  .command(ui)
  .command(emails)
  .command(getCost)
  .strict()
  .scriptName("run")
  .demandCommand(1, "")
  .parse();