tsrun/test/test.ts
2023-07-13 01:33:17 +02:00

15 lines
386 B
TypeScript

const textToPost: string = 'Test runs!';
console.log(textToPost);
const run = async () => {
const smartcli = await import('@push.rocks/smartcli');
const smartcliInstance = new smartcli.Smartcli();
console.log(process.argv);
smartcliInstance.addCommand('sayhello').subscribe(async (argvArg) => {
console.log('hello there');
});
smartcliInstance.startParse();
};
run();