standard tasks now returns argv

This commit is contained in:
2016-06-16 02:58:45 +02:00
parent 63a9da11be
commit 016f03bd8a
12 changed files with 115 additions and 80 deletions

View File

@ -1,6 +1,8 @@
import "typings-global";
import * as plugins from "./smartcli.plugins";
export class Command {
export class Question {
constructor(){
}
}

View File

@ -1,7 +1,7 @@
import "typings-global";
import * as plugins from "./smartcli.plugins";
import * as SmartcliInteractions from "./smartcli.interaction";
import {Question} from "./smartcli.classes.interaction";
export class Smartcli {
argv;
@ -51,9 +51,9 @@ export class Smartcli {
this.parseStarted.promise
.then(() => {
if(this.argv._.length == 0 && !this.argv.v){
done.resolve();
done.resolve(this.argv);
} else {
done.reject();
done.reject(this.argv);
};
});
return done.promise;