tools/ts/tools.cli.ts

14 lines
355 B
TypeScript
Raw Normal View History

2018-06-07 20:41:25 +00:00
import * as plugins from './tools.plugins';
import * as toolsInstall from './tools.install';
2019-06-19 12:24:08 +00:00
export const run = async () => {
const toolsCli = new plugins.smartcli.Smartcli();
2018-06-07 20:41:25 +00:00
2019-06-19 12:24:08 +00:00
toolsCli.addCommand('install').subscribe(async argvArg => {
toolsInstall.install('default');
});
2018-06-07 20:41:25 +00:00
2019-06-19 12:24:08 +00:00
toolsCli.addVersion('no version set');
toolsCli.startParse();
};