diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/index.d.ts b/dist/index.d.ts
new file mode 100644
index 0000000..d6f1ac2
--- /dev/null
+++ b/dist/index.d.ts
@@ -0,0 +1,10 @@
+///
+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;
diff --git a/dist/index.js b/dist/index.js
index 9e6a1a6..ae67e09 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -24,4 +24,4 @@ exports.get = SmartcliGetters;
* ------------------------------------------------ */
exports.interaction = SmartcliInteractions;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUMxQyxpREFBaUQ7O0FBRWpELElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFDL0MsSUFBTyxjQUFjLFdBQVcsbUJBQW1CLENBQUMsQ0FBQztBQUNyRCxJQUFPLGVBQWUsV0FBVyxvQkFBb0IsQ0FBQyxDQUFDO0FBQ3ZELElBQU8sb0JBQW9CLFdBQVcsd0JBQXdCLENBQUMsQ0FBQztBQUVoRTs7c0RBRXNEO0FBQzNDLGdCQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLGtDQUFrQztBQUMvRCxhQUFLLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLHFCQUFxQjtBQUM1QyxZQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQ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S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tICpcbiAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqL1xuZXhwb3J0IGxldCBnZXQgPSBTbWFydGNsaUdldHRlcnM7XG5cbi8qIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqXG4gKiAtLS0tLS0tLS0tIGludGVyYWN0aW9uIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tICpcbiAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAqL1xuZXhwb3J0IGxldCBpbnRlcmFjdGlvbiA9IFNtYXJ0Y2xpSW50ZXJhY3Rpb25zO1xuIl19
diff --git a/dist/smartcli.checks.d.ts b/dist/smartcli.checks.d.ts
new file mode 100644
index 0000000..f25d9ec
--- /dev/null
+++ b/dist/smartcli.checks.d.ts
@@ -0,0 +1,25 @@
+///
+/**
+ * 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;
diff --git a/dist/smartcli.checks.js b/dist/smartcli.checks.js
index d01fede..d9d6526 100644
--- a/dist/smartcli.checks.js
+++ b/dist/smartcli.checks.js
@@ -59,4 +59,4 @@ exports.optionPresence = function () {
return false;
};
-//# sourceMappingURL=data:application/json;base64,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getters.d.ts b/dist/smartcli.getters.d.ts
new file mode 100644
index 0000000..505b64e
--- /dev/null
+++ b/dist/smartcli.getters.d.ts
@@ -0,0 +1,35 @@
+///
+/**
+ *
+ * @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;
diff --git a/dist/smartcli.getters.js b/dist/smartcli.getters.js
index 1cd0003..fe300bf 100644
--- a/dist/smartcli.getters.js
+++ b/dist/smartcli.getters.js
@@ -100,4 +100,4 @@ exports.cwd = function () {
};
};
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Y2xpLmdldHRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDO0FBQzFDLGlEQUFpRDs7QUFFakQsSUFBTyxPQUFPLFdBQVcsb0JBQW9CLENBQUMsQ0FBQztBQUMvQyxJQUFPLGNBQWMsV0FBVyxtQkFBbUIsQ0FBQyxDQUFDO0FBRXJEOzs7O0dBSUc7QUFDUSxlQUFPLEdBQUc7SUFDakIsSUFBSSxVQUFVLEdBQUc7UUFDYixTQUFTLEVBQUUsY0FBYyxDQUFDLGVBQWUsRUFBRTtRQUMzQyxJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUksQ0FBQ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bGlPcHRpb24gPSB7XG4gICAgICAgIG5hbWU6b3B0aW9uTmFtZSxcbiAgICAgICAgc3BlY2lmaWVkOiBmYWxzZSxcbiAgICAgICAgdmFsdWU6IGZhbHNlXG4gICAgfTtcbiAgICBpZiAocGx1Z2lucy5zbWFydHBhcmFtLmV4aXN0cyhwbHVnaW5zLmFyZ3Ysb3B0aW9uTmFtZSkpIHtcbiAgICAgICAgY2xpT3B0aW9uLm5hbWUgPSBvcHRpb25OYW1lO1xuICAgICAgICBjbGlPcHRpb24uc3BlY2lmaWVkID0gdHJ1ZTtcbiAgICAgICAgY2xpT3B0aW9uLnZhbHVlID0gcGx1Z2lucy5hcmd2W29wdGlvbk5hbWVdIC8vd2UgYWxyZWFkeSBrbm93IGZyb20gdGhlIFwiaWZcIiBhYm92ZSB0aGF0IHRoZSB2YWx1ZSBpcyBhdmFpbGFibGUuXG4gICAgfVxuICAgIHJldHVybiBjbGlPcHRpb247XG59O1xuXG5cbmV4cG9ydCBsZXQgb3B0aW9ucyA9IGZ1bmN0aW9uKCkge1xuICAgIHZhciBvcHRpb25zID0ge307XG4gICAgZm9yICh2YXIga2V5IGluIHBsdWdpbnMuYXJndikge1xuICAgICAgICBpZiAoa2V5ICE9IFwiX1wiKSB7XG4gICAgICAgICAgICBvcHRpb25zWydrZXknXSA9IHBsdWdpbnMuYXJndlsna2V5J107XG4gICAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIG9wdGlvbnM7XG59O1xuXG4vKipcbiAqIHJldHVybnMgRGlyZWN0b3J5IG9mIGN3ZFxuICogQHJldHVybnMge3twYXRoOiBzdHJpbmd9fVxuICovXG5leHBvcnQgbGV0IGN3ZCA9IGZ1bmN0aW9uKCk6RGlyZWN0b3J5IHtcbiAgICByZXR1cm4ge1xuICAgICAgICBwYXRoOiBwcm9jZXNzLmN3ZCgpXG4gICAgfVxufTsiXX0=
diff --git a/dist/smartcli.interaction.d.ts b/dist/smartcli.interaction.d.ts
new file mode 100644
index 0000000..a51ee03
--- /dev/null
+++ b/dist/smartcli.interaction.d.ts
@@ -0,0 +1,16 @@
+///
+/**
+ * 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;
diff --git a/dist/smartcli.interaction.js b/dist/smartcli.interaction.js
index f16dbaf..cd38da8 100644
--- a/dist/smartcli.interaction.js
+++ b/dist/smartcli.interaction.js
@@ -52,4 +52,4 @@ exports.getChoice = function (questionString, choiceOptions, cb) {
});
};
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Y2xpLmludGVyYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUMxQyxpREFBaUQ7O0FBRWpELElBQU8sT0FBTyxXQUFXLG9CQUFvQixDQUFDLENBQUM7QUFFL0M7Ozs7O0dBS0c7QUFDUSxpQkFBUyxHQUFHLFVBQVMsY0FBcUIsRUFBRSxFQUFFO0lBQ3JELEVBQUUsQ0FBQyxDQUFDLE9BQU8sY0FBYyxJQUFJLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDcEMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsdUJBQXVCLENBQUMsQ0FBQztRQUNqRCxNQUFNLENBQUMsSUFBSSxDQUFDO0lBQ2hCLENBQUM7SUFDRCwwQ0FBMEM7SUFDMUMsSUFBSSxRQUFRLEdBQUc7UUFDWCxJQUFJLEVBQUUsT0FBTztRQUNiLElBQUksRUFBRSxjQUFjO1FBQ3BCLE9BQU8sRUFBRSxjQUFjO1FBQ3ZCLFFBQVEsRUFBRSxVQUFVLEtBQUs7WUFDckIsTUFBTSxDQUFDLElBQUksQ0F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hvaWNlID0gZnVuY3Rpb24ocXVlc3Rpb25TdHJpbmc6c3RyaW5nLCBjaG9pY2VPcHRpb25zOnN0cmluZ1tdLCBjYikge1xuICAgIGlmKCFBcnJheS5pc0FycmF5KGNob2ljZU9wdGlvbnMpKSB7XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIC8vbWFrZSBpbnF1aXJlciBjb21wYXRpYmxlIHF1ZXN0aW9uIG9iamVjdFxuICAgIHZhciBxdWVzdGlvbiA9IHtcbiAgICAgICAgdHlwZTogXCJsaXN0XCIsXG4gICAgICAgIG5hbWU6IFwidXNlckZlZWRiYWNrXCIsXG4gICAgICAgIG1lc3NhZ2U6IHF1ZXN0aW9uU3RyaW5nLFxuICAgICAgICBjaG9pY2VzOiBjaG9pY2VPcHRpb25zLFxuICAgICAgICBmaWx0ZXI6IGZ1bmN0aW9uKCB2YWwgKSB7IHJldHVybiB2YWwudG9Mb3dlckNhc2UoKTsgfVxuICAgIH07XG5cbiAgICBwbHVnaW5zLmlucXVpcmVyLnByb21wdChxdWVzdGlvbixmdW5jdGlvbihhbnN3ZXJzKXtcbiAgICAgICAgdmFyIGFuc3dlciA9IGFuc3dlcnMudXNlckZlZWRiYWNrO1xuICAgICAgICBjYihhbnN3ZXIpO1xuICAgIH0pO1xuXG59OyJdfQ==
diff --git a/dist/smartcli.interfaces.d.ts b/dist/smartcli.interfaces.d.ts
new file mode 100644
index 0000000..433f1ac
--- /dev/null
+++ b/dist/smartcli.interfaces.d.ts
@@ -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;
+}
diff --git a/dist/smartcli.interfaces.js b/dist/smartcli.interfaces.js
index 89c8922..9a6957f 100644
--- a/dist/smartcli.interfaces.js
+++ b/dist/smartcli.interfaces.js
@@ -1,3 +1,3 @@
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzbWFydGNsaS5pbnRlcmZhY2VzLmpzIiwic291cmNlc0NvbnRlbnQiOltdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzbWFydGNsaS5pbnRlcmZhY2VzLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
diff --git a/dist/smartcli.plugins.d.ts b/dist/smartcli.plugins.d.ts
new file mode 100644
index 0000000..3709f37
--- /dev/null
+++ b/dist/smartcli.plugins.d.ts
@@ -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;
diff --git a/dist/smartcli.plugins.js b/dist/smartcli.plugins.js
index dd24693..0ba64f0 100644
--- a/dist/smartcli.plugins.js
+++ b/dist/smartcli.plugins.js
@@ -7,4 +7,4 @@ exports.inquirer = require("inquirer");
exports.smartparam = require("smartparam");
exports.argv = require('yargs').argv;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0Y2xpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDOztBQUUvQixZQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ3ZCLGlCQUFTLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQ2pDLGFBQUssR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDekIsZ0JBQVEsR0FBRyxPQUFPLENBQUMs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BQUMsWUFBWSxDQUFDLENBQUM7QUFDbkMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQyxJQUFJLENBQUMiLCJmaWxlIjoic21hcnRjbGkucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCJ0eXBpbmdzL21haW4uZC50c1wiIC8+XG5cbmV4cG9ydCBsZXQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xuZXhwb3J0IGxldCBiZWF1dHlsb2cgPSByZXF1aXJlKFwiYmVhdXR5bG9nXCIpO1xuZXhwb3J0IGxldCBjbGlmZiA9IHJlcXVpcmUoXCJjbGlmZlwiKTtcbmV4cG9ydCBsZXQgaW5xdWlyZXIgPSByZXF1aXJlKFwiaW5xdWlyZXJcIik7XG5leHBvcnQgbGV0IHNtYXJ0cGFyYW0gPSByZXF1aXJlKFwic21hcnRwYXJhbVwiKTtcbmV4cG9ydCBsZXQgYXJndiA9IHJlcXVpcmUoJ3lhcmdzJykuYXJndjsiXX0=
diff --git a/package.json b/package.json
index dfc4755..6f0eae7 100644
--- a/package.json
+++ b/package.json
@@ -27,13 +27,13 @@
},
"homepage": "https://github.com/pushrocks/smartcli",
"dependencies": {
- "beautylog": "4.1.2",
+ "beautylog": "^4.1.6",
"cliff": "^0.1.10",
- "inquirer": "^0.12.0",
+ "inquirer": "^1.0.2",
"smartparam": "0.0.7",
- "yargs": "^4.3.2"
+ "yargs": "^4.7.0"
},
"devDependencies": {
- "npmts": "^5.0.3"
+ "npmts": "^5.1.5"
}
}
diff --git a/test/test.d.ts b/test/test.d.ts
new file mode 100644
index 0000000..3d6daff
--- /dev/null
+++ b/test/test.d.ts
@@ -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;
diff --git a/test/test.js b/test/test.js
index 0b9f7a6..fc00763 100644
--- a/test/test.js
+++ b/test/test.js
@@ -147,4 +147,5 @@ else {
endTests();
}
;
-//# sourceMappingURL=test.js.map
\ No newline at end of file
+
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZ0RBQWdEO0FBQ2hELElBQUksUUFBUSxHQUFHLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBQzNDLElBQUksTUFBTSxHQUFHLEdBQUcsQ0FBQTtBQUVoQjs7d0VBRXdFO0FBRXhFLFFBQVEsQ0FBQyxVQUFVLEVBQUM7SUFDaEIsUUFBUSxDQUFDLFFBQVEsRUFBQztRQUNkLFFBQVEsQ0FBQyxVQUFVLEVBQUM7WUFDaEIsRUFBRSxDQUFDLG9EQUFvRCxFQUFDO2dCQUNwRCxRQUFRLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLElBQUksRUFBRSxDQUFDO1lBQ3BELENBQUMsQ0FBQyxDQUFDO1lBQ0gsRUFBRSxDQUFDLHlEQUF5RCxFQUFDO2dCQUN6RCxRQUFRLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLEtBQUssRUFBRSxDQUFDO1lBQ3JELENBQUMsQ0FBQyxDQUFDO1FBQ1AsQ0FBQyxDQUFDLENBQUM7UUFDSCxRQUFRLENBQUMsa0JBQWtCLEVBQUM7UUFFNUIsQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDLENBQUM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B7XG4gICAgYmVhdXR5bG9nLm9rKFwiTm8gbW9yZSB0ZXN0cyFcIik7XG4gICAgYmVhdXR5bG9nLnN1Y2Nlc3MoXCJUZXN0cyBjb21wbGV0ZWQgc3VjY2Vzc2Z1bGx5IVwiKTtcbn07XG5cbmlmKCFzbWFydGNsaS5jaGVjay5vcHRpb24oXCJzaWxlbnRcIikpe1xuICAgIGludGVyYWN0aW9uR2V0QW5zd2VyVGVzdCgpO1xufSBlbHNlIHtcbiAgICBiZWF1dHlsb2cuaW5mbyhcIi0tc2lsZW50IG9wdGlvbiBpcyBzcGVjaWZpZWQsIHRodXMgd2UgYXJlIG5vdCBydW5uaW5nIGludGVyYWN0aW9uIHRlc3RzLlwiKTtcbiAgICBlbmRUZXN0cygpO1xufTtcblxuXG5cbiJdfQ==
diff --git a/ts/typings/browser.d.ts b/ts/typings/browser.d.ts
deleted file mode 100644
index cb330bf..0000000
--- a/ts/typings/browser.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-///
-///
diff --git a/ts/typings/main.d.ts b/ts/typings/main.d.ts
deleted file mode 100644
index 463b302..0000000
--- a/ts/typings/main.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-///
-///