tsrun/test/test.ts

15 lines
386 B
TypeScript
Raw Permalink Normal View History

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