fix(core): update

This commit is contained in:
2022-03-12 14:43:54 +01:00
parent e40c0151bc
commit b66b2083ab
7 changed files with 196 additions and 68 deletions

View File

@@ -2,9 +2,13 @@ const textToPost: string = 'Test runs!';
console.log(textToPost);
const run = async () => {
// lets test esm
console.warn('remember to enable esm checks once TypeScript 4.5 is released.')
// const nodeFetch = await import('node-fetch');
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();
}
run();