update to deno
This commit is contained in:
@@ -10,12 +10,12 @@ export class SzciCli {
|
||||
constructor(szciArg: Szci) {
|
||||
this.szciRef = szciArg;
|
||||
this.smartcli = new plugins.smartcli.Smartcli();
|
||||
this.smartcli.addVersion(this.szciRef.npmciInfo.version);
|
||||
this.smartcli.addVersion(this.szciRef.szciInfo.version);
|
||||
|
||||
// clean
|
||||
this.smartcli.addCommand('clean').subscribe(
|
||||
async (argv) => {
|
||||
const modClean = await import('./mod_clean/index.js');
|
||||
const modClean = await import('./mod_clean/index.ts');
|
||||
await modClean.clean();
|
||||
},
|
||||
(err) => {
|
||||
@@ -38,7 +38,7 @@ export class SzciCli {
|
||||
// command
|
||||
this.smartcli.addCommand('command').subscribe(
|
||||
async (argv) => {
|
||||
const modCommand = await import('./mod_command/index.js');
|
||||
const modCommand = await import('./mod_command/index.ts');
|
||||
await modCommand.command();
|
||||
},
|
||||
(err) => {
|
||||
@@ -91,20 +91,20 @@ export class SzciCli {
|
||||
);
|
||||
|
||||
this.smartcli.addCommand('precheck').subscribe(async (argvArg) => {
|
||||
const modPrecheck = await import('./mod_precheck/index.js');
|
||||
const modPrecheck = await import('./mod_precheck/index.ts');
|
||||
await modPrecheck.handleCli(this.szciRef, argvArg);
|
||||
});
|
||||
|
||||
// trigger
|
||||
this.smartcli.addCommand('ssh').subscribe(async (argvArg) => {
|
||||
const modSsh = await import('./mod_ssh/index.js');
|
||||
const modSsh = await import('./mod_ssh/index.ts');
|
||||
await modSsh.handleCli(argvArg);
|
||||
});
|
||||
|
||||
// trigger
|
||||
this.smartcli.addCommand('trigger').subscribe(
|
||||
async (argv) => {
|
||||
const modTrigger = await import('./mod_trigger/index.js');
|
||||
const modTrigger = await import('./mod_trigger/index.ts');
|
||||
await modTrigger.trigger();
|
||||
},
|
||||
(err) => {
|
||||
|
||||
Reference in New Issue
Block a user