tswatch/ts/tswatch.cli.ts

18 lines
485 B
TypeScript
Raw Normal View History

2018-10-28 00:48:43 +00:00
import * as plugins from './tswatch.plugins';
import * as paths from './tswatch.paths';
2019-05-08 09:14:57 +00:00
import { logger } from './tswatch.logging';
2018-10-28 00:48:43 +00:00
import { TsWatch } from './tswatch.classes.tswatch';
const tswatchCli = new plugins.smartcli.Smartcli();
2019-05-08 09:14:57 +00:00
// standard behaviour will assume gitzone setup
2019-05-08 22:08:40 +00:00
tswatchCli.addCommand('test').subscribe(async argvArg => {
2019-05-08 09:14:57 +00:00
logger.log('info', `running test task`);
2019-05-08 22:08:40 +00:00
const tsWatch = new TsWatch('test');
await tsWatch.start();
2018-10-28 00:48:43 +00:00
});
tswatchCli.startParse();