fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-19 14:24:08 +02:00
parent dd8c30e7cf
commit d0c6ebb0df
2 changed files with 9 additions and 6 deletions

View File

@ -1,2 +1,3 @@
import plugins = require('./tools.plugins'); import plugins = require('./tools.plugins');
import * as cli from './tools.cli'; import * as cli from './tools.cli';
cli.run();

View File

@ -1,11 +1,13 @@
import * as plugins from './tools.plugins'; import * as plugins from './tools.plugins';
import * as toolsInstall from './tools.install'; import * as toolsInstall from './tools.install';
const toolsCli = new plugins.smartcli.Smartcli(); export const run = async () => {
const toolsCli = new plugins.smartcli.Smartcli();
toolsCli.addCommand('install').subscribe(async argvArg => { toolsCli.addCommand('install').subscribe(async argvArg => {
toolsInstall.install('default'); toolsInstall.install('default');
}); });
toolsCli.addVersion('no version set'); toolsCli.addVersion('no version set');
toolsCli.startParse(); toolsCli.startParse();
};