introduce new classes
This commit is contained in:
parent
088d4ef11b
commit
ab18c75b28
6
ts/smartcli.classes.command.ts
Normal file
6
ts/smartcli.classes.command.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import "typings-global";
|
||||||
|
import * as plugins from "./smartcli.plugins";
|
||||||
|
|
||||||
|
export class Command {
|
||||||
|
|
||||||
|
}
|
6
ts/smartcli.classes.interaction.ts
Normal file
6
ts/smartcli.classes.interaction.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import "typings-global";
|
||||||
|
import * as plugins from "./smartcli.plugins";
|
||||||
|
|
||||||
|
export class Command {
|
||||||
|
|
||||||
|
}
|
@ -25,7 +25,7 @@ export class Smartcli {
|
|||||||
if (this.argv._.indexOf(definitionArg.commandName) == 0) {
|
if (this.argv._.indexOf(definitionArg.commandName) == 0) {
|
||||||
done.resolve(this.argv);
|
done.resolve(this.argv);
|
||||||
} else {
|
} else {
|
||||||
return done.reject();
|
done.reject(this.argv);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return done.promsise;
|
return done.promsise;
|
||||||
|
Loading…
Reference in New Issue
Block a user