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 () => {
|
2022-03-12 13:43:54 +00:00
|
|
|
const smartcli = await import('@pushrocks/smartcli');
|
|
|
|
const smartcliInstance = new smartcli.Smartcli();
|
|
|
|
console.log(process.argv)
|
|
|
|
smartcliInstance.addCommand('sayhello').subscribe(async argvArg => {
|
|
|
|
console.log('hello there');
|
|
|
|
})
|
|
|
|
smartcliInstance.startParse();
|
2021-10-06 11:06:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
run();
|