update smartcli
This commit is contained in:
parent
b67e3c0de1
commit
5c67015779
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,8 +1,6 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
.settings/
|
|
||||||
.idea/
|
|
||||||
coverage/
|
coverage/
|
||||||
docs/
|
pages/
|
||||||
|
|
||||||
|
|
||||||
ts/*.js
|
ts/*.js
|
||||||
|
4
dist/smartcli.classes.smartcli.js
vendored
4
dist/smartcli.classes.smartcli.js
vendored
@ -8,7 +8,7 @@ class Smartcli {
|
|||||||
constructor() {
|
constructor() {
|
||||||
// maps
|
// maps
|
||||||
this.allCommandPromises = new lik_1.Objectmap();
|
this.allCommandPromises = new lik_1.Objectmap();
|
||||||
this.argv = plugins.argv;
|
this.argv = plugins.yargs;
|
||||||
this.questionsDone = plugins.q.defer();
|
this.questionsDone = plugins.q.defer();
|
||||||
this.parseStarted = plugins.q.defer();
|
this.parseStarted = plugins.q.defer();
|
||||||
}
|
}
|
||||||
@ -96,4 +96,4 @@ class Smartcli {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.Smartcli = Smartcli;
|
exports.Smartcli = Smartcli;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRjbGkuY2xhc3Nlcy5zbWFydGNsaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Y2xpLmNsYXNzZXMuc21hcnRjbGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUV4QixNQUFZLE9BQU8sV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBRzlDLGlCQUFpQjtBQUNqQixzQkFBd0IsS0FBSyxDQUFDLENBQUE7QUFNN0IsQ0FBQztBQUVGO0lBVUk7UUFGQSxPQUFPO1FBQ1AsdUJBQWtCLEdBQUcsSUFBSSxlQUFTLEVBQ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UcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUM3QixJQUFJLENBQUMsWUFBWSxDQUFDLE9BQU87YUFDcEIsSUFBSSxDQUFDO1lBQ0YsRUFBRSxDQUFBLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsTUFBTSxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUEsQ0FBQztnQkFDeEMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDNUIsQ0FBQztZQUFDLElBQUksQ0FBQyxDQUFDO2dCQUNKLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQzNCLENBQUM7WUFBQSxDQUFDO1FBQ04sQ0FBQyxDQUFDLENBQUM7UUFDUCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDO0lBQ0QsVUFBVTtRQUNOLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDM0IsSUFBSSxDQUFDLFlBQVksQ0FBQyxPQUFPLEVBQUUsQ0FBQztJQUNoQyxDQUFDO0FBRUwsQ0FBQztBQWpHWSxnQkFBUSxXQWlHcEIsQ0FBQSJ9
|
6
dist/smartcli.plugins.d.ts
vendored
6
dist/smartcli.plugins.d.ts
vendored
@ -1,9 +1,9 @@
|
|||||||
import "typings-global";
|
import "typings-global";
|
||||||
export declare let argv: any;
|
export import yargs = require('yargs');
|
||||||
export import beautylog = require("beautylog");
|
export import beautylog = require("beautylog");
|
||||||
export declare let cliff: any;
|
export import cliff = require("cliff");
|
||||||
export import inquirer = require("inquirer");
|
export import inquirer = require("inquirer");
|
||||||
export import lik = require("lik");
|
export import lik = require("lik");
|
||||||
export declare let path: any;
|
export import path = require("path");
|
||||||
export import q = require("q");
|
export import q = require("q");
|
||||||
export import smartparam = require("smartparam");
|
export import smartparam = require("smartparam");
|
||||||
|
4
dist/smartcli.plugins.js
vendored
4
dist/smartcli.plugins.js
vendored
@ -1,6 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
require("typings-global");
|
require("typings-global");
|
||||||
exports.argv = require('yargs');
|
exports.yargs = require('yargs');
|
||||||
exports.beautylog = require("beautylog");
|
exports.beautylog = require("beautylog");
|
||||||
exports.cliff = require("cliff");
|
exports.cliff = require("cliff");
|
||||||
exports.inquirer = require("inquirer");
|
exports.inquirer = require("inquirer");
|
||||||
@ -8,4 +8,4 @@ exports.lik = require("lik");
|
|||||||
exports.path = require("path");
|
exports.path = require("path");
|
||||||
exports.q = require("q");
|
exports.q = require("q");
|
||||||
exports.smartparam = require("smartparam");
|
exports.smartparam = require("smartparam");
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRjbGkucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Y2xpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUViLFlBQUksR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDckIsaUJBQVMsV0FBVyxXQUFXLENBQUMsQ0FBQztBQUNwQyxhQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0FBQ3RCLGdCQUFRLFdBQVcsVUFBVSxDQUFDLENBQUM7QUFDL0IsV0FBRyxXQUFXLEtBQUssQ0FBQyxDQUFDO0FBQ3hCLFlBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDcEIsU0FBQyxXQUFXLEdBQUcsQ0FBQyxDQUFDO0FBQ2pCLGtCQUFVLFdBQVcsWUFBWSxDQUFDLENBQUMifQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRjbGkucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Y2xpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUVWLGFBQUssV0FBVyxPQUFPLENBQUMsQ0FBQztBQUN6QixpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLGFBQUssV0FBVyxPQUFPLENBQUMsQ0FBQztBQUN6QixnQkFBUSxXQUFXLFVBQVUsQ0FBQyxDQUFDO0FBQy9CLFdBQUcsV0FBVyxLQUFLLENBQUMsQ0FBQztBQUNyQixZQUFJLFdBQVcsTUFBTSxDQUFDLENBQUM7QUFDdkIsU0FBQyxXQUFXLEdBQUcsQ0FBQyxDQUFDO0FBQ2pCLGtCQUFVLFdBQVcsWUFBWSxDQUFDLENBQUMifQ==
|
@ -28,8 +28,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/smartcli",
|
"homepage": "https://gitlab.com/pushrocks/smartcli",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/cliff": "^0.1.3",
|
||||||
"@types/inquirer": "0.x.x",
|
"@types/inquirer": "0.x.x",
|
||||||
"@types/q": "0.x.x",
|
"@types/q": "0.x.x",
|
||||||
|
"@types/yargs": "0.x.x",
|
||||||
"beautylog": "^5.0.20",
|
"beautylog": "^5.0.20",
|
||||||
"cliff": "^0.1.10",
|
"cliff": "^0.1.10",
|
||||||
"inquirer": "^1.1.2",
|
"inquirer": "^1.1.2",
|
||||||
|
@ -13,7 +13,7 @@ export interface commandPromiseObject {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export class Smartcli {
|
export class Smartcli {
|
||||||
argv;
|
argv:any;
|
||||||
questionsDone;
|
questionsDone;
|
||||||
parseStarted;
|
parseStarted;
|
||||||
commands;
|
commands;
|
||||||
@ -23,7 +23,7 @@ export class Smartcli {
|
|||||||
// maps
|
// maps
|
||||||
allCommandPromises = new Objectmap<commandPromiseObject>();
|
allCommandPromises = new Objectmap<commandPromiseObject>();
|
||||||
constructor(){
|
constructor(){
|
||||||
this.argv = plugins.argv;
|
this.argv = plugins.yargs;
|
||||||
this.questionsDone = plugins.q.defer();
|
this.questionsDone = plugins.q.defer();
|
||||||
this.parseStarted = plugins.q.defer();
|
this.parseStarted = plugins.q.defer();
|
||||||
};
|
};
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import "typings-global";
|
import "typings-global";
|
||||||
|
|
||||||
export let argv = require('yargs');
|
export import yargs = require('yargs');
|
||||||
export import beautylog = require("beautylog");
|
export import beautylog = require("beautylog");
|
||||||
export let cliff = require("cliff");
|
export import cliff = require("cliff");
|
||||||
export import inquirer = require("inquirer");
|
export import inquirer = require("inquirer");
|
||||||
export import lik = require("lik");
|
export import lik = require("lik");
|
||||||
export let path = require("path");
|
export import path = require("path");
|
||||||
export import q = require("q");
|
export import q = require("q");
|
||||||
export import smartparam = require("smartparam");
|
export import smartparam = require("smartparam");
|
Loading…
Reference in New Issue
Block a user