update deps
This commit is contained in:
parent
204c7105e8
commit
cf03c6681b
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
10
dist/index.d.ts
vendored
Normal file
10
dist/index.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/// <reference path="smartcli.interfaces.d.ts" />
|
||||||
|
import SmartcliChecks = require("./smartcli.checks");
|
||||||
|
import SmartcliGetters = require("./smartcli.getters");
|
||||||
|
import SmartcliInteractions = require("./smartcli.interaction");
|
||||||
|
export declare let inquirer: any;
|
||||||
|
export declare let cliff: any;
|
||||||
|
export declare let argv: any;
|
||||||
|
export declare let check: typeof SmartcliChecks;
|
||||||
|
export declare let get: typeof SmartcliGetters;
|
||||||
|
export declare let interaction: typeof SmartcliInteractions;
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -24,4 +24,4 @@ exports.get = SmartcliGetters;
|
|||||||
* ------------------------------------------------ */
|
* ------------------------------------------------ */
|
||||||
exports.interaction = SmartcliInteractions;
|
exports.interaction = SmartcliInteractions;
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUMxQyxpREFBaUQ7O0FBRWpELElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFDL0MsSUFBTyxjQUFjLFdBQVcsbUJBQW1CLENBQUMsQ0FBQztBQUNyRCxJQUFPLGVBQWUsV0FBVyxvQkFBb0IsQ0FBQyxDQUFDO0FBQ3ZELElBQU8sb0JBQW9CLFdBQVcsd0JBQXdCLENBQUMsQ0FBQztBQUVoRTs7c0RBRXNEO0FBQzNDLGdCQUFRLEd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wb3J0IGxldCBjaGVjayA9IFNtYXJ0Y2xpQ2hlY2tzO1xuXG4vKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gKlxuICogLS0tLS0tLS0tLSBnZXR0ZXJzIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tICpcbiAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqL1xuZXhwb3J0IGxldCBnZXQgPSBTbWFydGNsaUdldHRlcnM7XG5cbi8qIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqXG4gKiAtLS0tLS0tLS0tIGludGVyYWN0aW9uIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tICpcbiAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqL1xuZXhwb3J0IGxldCBpbnRlcmFjdGlvbiA9IFNtYXJ0Y2xpSW50ZXJhY3Rpb25zO1xuIl19
|
||||||
|
25
dist/smartcli.checks.d.ts
vendored
Normal file
25
dist/smartcli.checks.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/// <reference path="smartcli.interfaces.d.ts" />
|
||||||
|
/**
|
||||||
|
* checks for a special command string and returns true if found.
|
||||||
|
* @param commandString
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
export declare let command: (commandString: string) => boolean;
|
||||||
|
/**
|
||||||
|
* checks if a command is present, returns true if yes, false if no.
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
export declare let commandPresence: () => boolean;
|
||||||
|
/**
|
||||||
|
* checks for an special command argument at a certain position, returns true if matches, returns false if not
|
||||||
|
* @param level
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
export declare let commandArgument: (commandArgumentString: string, level?: number) => boolean;
|
||||||
|
export declare let commandArgumentPresence: (level?: number) => boolean;
|
||||||
|
/**
|
||||||
|
* checks for a specific option string, returns true if yes, returns false if no
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
export declare let option: (optionString: any) => boolean;
|
||||||
|
export declare let optionPresence: () => boolean;
|
2
dist/smartcli.checks.js
vendored
2
dist/smartcli.checks.js
vendored
@ -59,4 +59,4 @@ exports.optionPresence = function () {
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Y2xpLmNoZWNrcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwwQ0FBMEM7QUFDMUMsaURBQWlEOztBQUVqRCxJQUFPLE9BQU8sV0FBVyxvQkFBb0IsQ0FBQyxDQUFDO0FBRS9DOzs7O0dBSUc7QUFDUSxlQUFPLEdBQUcsVUFBUyxhQUFvQjtJQUM5QyxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM3QyxNQUFNLENBQUMsSUFBSSxDQUFBO0lBQ2YsQ0FBQztJQUNELE1BQU0sQ0FBQyxLQUFLLENBQUM7QUFDakIsQ0FBQyxDQUFDO0FBRUY7OztHQUdHO0FBQ1EsdUJBQWUsR0FBRztJQUN6QixFQUFFLENBQUEsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUEsQ0FBQztRQUMxQixNQUFNLENBQUMsSUFBSSxDQUFDO0lBQ2hCLENBQUM7SUFDRCxNQUFNLENBQUMsS0FBSyxDQUFDO0FBQ2pCLENBQUMsQ0FBQztBQUVGOzs7O0dBS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pc3RzKHBsdWdpbnMuYXJndiwgb3B0aW9uU3RyaW5nKSkge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gICAgcmV0dXJuIGZhbHNlO1xufTtcblxuZXhwb3J0IGxldCBvcHRpb25QcmVzZW5jZSA9IGZ1bmN0aW9uKCk6Ym9vbGVhbiB7XG4gICAgaWYgKHBsdWdpbnMuYXJndi5pbmRleE9mKCkgIT0gLTEpIHtcbiAgICAgICAgcmV0dXJuIHRydWVcbiAgICB9XG4gICAgcmV0dXJuIGZhbHNlO1xufTsiXX0=
|
||||||
|
35
dist/smartcli.getters.d.ts
vendored
Normal file
35
dist/smartcli.getters.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/// <reference path="smartcli.interfaces.d.ts" />
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param commandString
|
||||||
|
* @returns {{specified: boolean, name: any, arguments: CliCommandArgument}}
|
||||||
|
*/
|
||||||
|
export declare let command: () => CliCommand;
|
||||||
|
/**
|
||||||
|
* gets the second or higher value of plugins.argv._ if specified and returns it as commandArgument
|
||||||
|
* @param argumentLevel
|
||||||
|
* @returns {{specified: (boolean|boolean), name}}
|
||||||
|
*/
|
||||||
|
export declare let commandArgument: (argumentLevel: any) => CliCommandArgument;
|
||||||
|
/**
|
||||||
|
* returns array with commandArgs
|
||||||
|
* @returns {CliCommandArgument[]}
|
||||||
|
*/
|
||||||
|
export declare let commandArgs: () => CliCommandArgument[];
|
||||||
|
/**
|
||||||
|
* returns complete command array
|
||||||
|
* @returns {any}
|
||||||
|
*/
|
||||||
|
export declare let commandArray: () => string[];
|
||||||
|
/**
|
||||||
|
* returns a cli option
|
||||||
|
* @param optionName
|
||||||
|
* @returns {CliOption}
|
||||||
|
*/
|
||||||
|
export declare let option: (optionName: string) => CliOption;
|
||||||
|
export declare let options: () => {};
|
||||||
|
/**
|
||||||
|
* returns Directory of cwd
|
||||||
|
* @returns {{path: string}}
|
||||||
|
*/
|
||||||
|
export declare let cwd: () => Directory;
|
2
dist/smartcli.getters.js
vendored
2
dist/smartcli.getters.js
vendored
File diff suppressed because one or more lines are too long
16
dist/smartcli.interaction.d.ts
vendored
Normal file
16
dist/smartcli.interaction.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/// <reference path="smartcli.interfaces.d.ts" />
|
||||||
|
/**
|
||||||
|
* executes callback with answer to question as argument
|
||||||
|
* @param questionString the question you want to ask the user
|
||||||
|
* @param cb the function to execute with answer as param
|
||||||
|
* @returns {null}
|
||||||
|
*/
|
||||||
|
export declare let getAnswer: (questionString: string, cb: any) => any;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param questionString
|
||||||
|
* @param choiceOptions
|
||||||
|
* @param cb
|
||||||
|
* @returns {null}
|
||||||
|
*/
|
||||||
|
export declare let getChoice: (questionString: string, choiceOptions: string[], cb: any) => any;
|
2
dist/smartcli.interaction.js
vendored
2
dist/smartcli.interaction.js
vendored
@ -52,4 +52,4 @@ exports.getChoice = function (questionString, choiceOptions, cb) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Y2xpLmludGVyYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUMxQyxpREFBaUQ7O0FBRWpELElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFFL0M7Ozs7O0dBS0c7QUFDUSxpQkFBUyxHQUFHLFVBQVMsY0FBcUIsRUFBRSxFQUFFO0lBQ3JELEVBQUUsQ0FBQyxDQUFDLE9BQU8sY0FBYyxJQUFJLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDcEMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsdUJBQXVCLENBQUMsQ0FBQztRQUNqRCxNQUFNLENBQUMsSUFBSSxD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ZXJzLnVzZXJGZWVkYmFjaztcbiAgICAgICAgY2IoYW5zd2VyKTtcbiAgICB9KTtcbn07XG5cbi8qKlxuICpcbiAqIEBwYXJhbSBxdWVzdGlvblN0cmluZ1xuICogQHBhcmFtIGNob2ljZU9wdGlvbnNcbiAqIEBwYXJhbSBjYlxuICogQHJldHVybnMge251bGx9XG4gKi9cbmV4cG9ydCBsZXQgZ2V0Q2hvaWNlID0gZnVuY3Rpb24ocXVlc3Rpb25TdHJpbmc6c3RyaW5nLCBjaG9pY2VPcHRpb25zOnN0cmluZ1tdLCBjYikge1xuICAgIGlmKCFBcnJheS5pc0FycmF5KGNob2ljZU9wdGlvbnMpKSB7XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIC8vbWFrZSBpbnF1aXJlciBjb21wYXRpYmxlIHF1ZXN0aW9uIG9iamVjdFxuICAgIHZhciBxdWVzdGlvbiA9IHtcbiAgICAgICAgdHlwZTogXCJsaXN0XCIsXG4gICAgICAgIG5hbWU6IFwidXNlckZlZWRiYWNrXCIsXG4gICAgICAgIG1lc3NhZ2U6IHF1ZXN0aW9uU3RyaW5nLFxuICAgICAgICBjaG9pY2VzOiBjaG9pY2VPcHRpb25zLFxuICAgICAgICBmaWx0ZXI6IGZ1bmN0aW9uKCB2YWwgKSB7IHJldHVybiB2YWwudG9Mb3dlckNhc2UoKTsgfVxuICAgIH07XG5cbiAgICBwbHVnaW5zLmlucXVpcmVyLnByb21wdChxdWVzdGlvbixmdW5jdGlvbihhbnN3ZXJzKXtcbiAgICAgICAgdmFyIGFuc3dlciA9IGFuc3dlcnMudXNlckZlZWRiYWNrO1xuICAgICAgICBjYihhbnN3ZXIpO1xuICAgIH0pO1xuXG59OyJdfQ==
|
||||||
|
18
dist/smartcli.interfaces.d.ts
vendored
Normal file
18
dist/smartcli.interfaces.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
interface CliOption {
|
||||||
|
name: string;
|
||||||
|
specified: boolean;
|
||||||
|
value: any;
|
||||||
|
}
|
||||||
|
interface Directory {
|
||||||
|
path: string;
|
||||||
|
}
|
||||||
|
interface CliCommand {
|
||||||
|
specified: boolean;
|
||||||
|
name: string;
|
||||||
|
arguments: CliCommandArgument[];
|
||||||
|
}
|
||||||
|
interface CliCommandArgument {
|
||||||
|
specified: boolean;
|
||||||
|
name: string;
|
||||||
|
level: number;
|
||||||
|
}
|
2
dist/smartcli.interfaces.js
vendored
2
dist/smartcli.interfaces.js
vendored
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzbWFydGNsaS5pbnRlcmZhY2VzLmpzIiwic291cmNlc0NvbnRlbnQiOltdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzbWFydGNsaS5pbnRlcmZhY2VzLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
|
||||||
|
6
dist/smartcli.plugins.d.ts
vendored
Normal file
6
dist/smartcli.plugins.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export declare let path: any;
|
||||||
|
export declare let beautylog: any;
|
||||||
|
export declare let cliff: any;
|
||||||
|
export declare let inquirer: any;
|
||||||
|
export declare let smartparam: any;
|
||||||
|
export declare let argv: any;
|
2
dist/smartcli.plugins.js
vendored
2
dist/smartcli.plugins.js
vendored
@ -7,4 +7,4 @@ exports.inquirer = require("inquirer");
|
|||||||
exports.smartparam = require("smartparam");
|
exports.smartparam = require("smartparam");
|
||||||
exports.argv = require('yargs').argv;
|
exports.argv = require('yargs').argv;
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2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pbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDOztBQUUvQixZQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ3ZCLGlCQUFTLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLGFBQUssR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDekIsZ0JBQVEsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUM7QUFDL0Isa0JBQVUsR0FBRyxPQUFPLENBQUMsWUFBWSxDQUFDLENBQUM7QUFDbkMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQyxJQUFJLENBQUMiLCJmaWxlIjoic21hcnRjbGkucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCJ0eXBpbmdzL21haW4uZC50c1wiIC8+XG5cbmV4cG9ydCBsZXQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xuZXhwb3J0IGxldCBiZWF1dHlsb2cgPSByZXF1aXJlKFwiYmVhdXR5bG9nXCIpO1xuZXhwb3J0IGxldCBjbGlmZiA9IHJlcXVpcmUoXCJjbGlmZlwiKTtcbmV4cG9ydCBsZXQgaW5xdWlyZXIgPSByZXF1aXJlKFwiaW5xdWlyZXJcIik7XG5leHBvcnQgbGV0IHNtYXJ0cGFyYW0gPSByZXF1aXJlKFwic21hcnRwYXJhbVwiKTtcbmV4cG9ydCBsZXQgYXJndiA9IHJlcXVpcmUoJ3lhcmdzJykuYXJndjsiXX0=
|
||||||
|
@ -27,13 +27,13 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/smartcli",
|
"homepage": "https://github.com/pushrocks/smartcli",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"beautylog": "4.1.2",
|
"beautylog": "^4.1.6",
|
||||||
"cliff": "^0.1.10",
|
"cliff": "^0.1.10",
|
||||||
"inquirer": "^0.12.0",
|
"inquirer": "^1.0.2",
|
||||||
"smartparam": "0.0.7",
|
"smartparam": "0.0.7",
|
||||||
"yargs": "^4.3.2"
|
"yargs": "^4.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts": "^5.0.3"
|
"npmts": "^5.1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
test/test.d.ts
vendored
Normal file
12
test/test.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
declare let smartcli: any;
|
||||||
|
declare let should: any;
|
||||||
|
declare var checkCommandArgumentTest: () => void;
|
||||||
|
declare var checkCommandArgumentPresenceTest: () => void;
|
||||||
|
declare var getCommandTest: () => void;
|
||||||
|
declare var getCommandArgumentTest: () => void;
|
||||||
|
declare var getCommandArgsTest: () => void;
|
||||||
|
declare var getOptionTest: () => void;
|
||||||
|
declare var getCwdTest: () => void;
|
||||||
|
declare var interactionGetAnswerTest: () => void;
|
||||||
|
declare var interactionGetChoiceTest: () => void;
|
||||||
|
declare var endTests: () => void;
|
File diff suppressed because one or more lines are too long
2
ts/typings/browser.d.ts
vendored
2
ts/typings/browser.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
/// <reference path="browser/ambient/mocha/index.d.ts" />
|
|
||||||
/// <reference path="browser/ambient/node/index.d.ts" />
|
|
2
ts/typings/main.d.ts
vendored
2
ts/typings/main.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
/// <reference path="main/ambient/mocha/index.d.ts" />
|
|
||||||
/// <reference path="main/ambient/node/index.d.ts" />
|
|
Loading…
Reference in New Issue
Block a user