import * as yargs from 'yargs'; import '../loadEnv'; import '../loadConfig'; import '../loadPluggable'; import '../utils/projectCheck'; import './clean'; import './build'; import './analyze'; import './start'; import './develop'; import { cliHook } from '../hooks'; export function getCli() { return cliHook.filter(yargs, {}) .version() .showHelpOnFail(true) .help( 'help', 'Show usage instructions.' ) .command({ command: '*', handler() { yargs.showHelp(); }, }) .demandCommand(); }