tsrun/test/test.ts

15 lines
386 B
TypeScript
Raw Permalink Normal View History

2018-06-04 23:25:19 +02:00
const textToPost: string = 'Test runs!';
console.log(textToPost);
2021-10-06 13:06:24 +02:00
const run = async () => {
2023-07-13 01:33:17 +02:00
const smartcli = await import('@push.rocks/smartcli');
2022-03-12 14:43:54 +01:00
const smartcliInstance = new smartcli.Smartcli();
2022-10-12 17:21:03 +02:00
console.log(process.argv);
smartcliInstance.addCommand('sayhello').subscribe(async (argvArg) => {
2022-03-12 14:43:54 +01:00
console.log('hello there');
2022-10-12 17:21:03 +02:00
});
2022-03-12 14:43:54 +01:00
smartcliInstance.startParse();
2022-10-12 17:21:03 +02:00
};
2021-10-06 13:06:24 +02:00
2022-10-12 17:21:03 +02:00
run();