@anycli/command
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -0,1 +1,9 @@ | ||
<a name="1.2.6"></a> | ||
## [1.2.6](https://github.com/anycli/command/compare/7b0acc6f82620daebabbdc57838df055239b4edf...v1.2.6) (2018-02-05) | ||
### Bug Fixes | ||
* move ExitError to config ([84a397e](https://github.com/anycli/command/commit/84a397e)) | ||
<a name="1.2.5"></a> | ||
@@ -2,0 +10,0 @@ ## [1.2.5](https://github.com/anycli/command/compare/26895f76a879a002cf01319aba3779ba4cad8ae9...v1.2.5) (2018-02-05) |
@@ -6,3 +6,2 @@ "use strict"; | ||
const Config = require("@anycli/config"); | ||
const exit_1 = require("./exit"); | ||
const flags = require("./flags"); | ||
@@ -39,3 +38,3 @@ const util_1 = require("./util"); | ||
} | ||
exit(code) { throw new exit_1.ExitError(code || 0); } | ||
exit(code) { throw new Config.ExitError(code || 0); } | ||
log(s) { | ||
@@ -55,3 +54,2 @@ process.stdout.write((s || '') + '\n'); | ||
global['http-call'].userAgent = this.config.userAgent; | ||
await this.config.runHook('init', { argv: this.argv }); | ||
if (this._helpOverride()) | ||
@@ -58,0 +56,0 @@ return this._help(); |
@@ -10,2 +10,3 @@ "use strict"; | ||
let [id, ...argv] = this.argv; | ||
await this.config.runHook('init', { id, argv }); | ||
this.parse(Object.assign({ strict: false, '--': false }, this.ctor)); | ||
@@ -12,0 +13,0 @@ await this.config.runCommand(id, argv); |
{ | ||
"name": "@anycli/command", | ||
"description": "anycli base command", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -19,5 +19,5 @@ "bugs": "https://github.com/anycli/command/issues", | ||
"devDependencies": { | ||
"@anycli/config": "^1.1.6", | ||
"@anycli/plugin-help": "^0.6.1", | ||
"@anycli/plugin-not-found": "^0.1.15", | ||
"@anycli/config": "^1.2.3", | ||
"@anycli/plugin-help": "^0.6.3", | ||
"@anycli/plugin-not-found": "^0.1.16", | ||
"@anycli/plugin-plugins": "^0.2.11", | ||
@@ -32,3 +32,2 @@ "@anycli/tslint": "^0.2.5", | ||
"fancy-test": "^1.0.1", | ||
"http-call": "^5.0.2", | ||
"mocha": "^5.0.0", | ||
@@ -35,0 +34,0 @@ "nock": "^9.1.6", |
16
34073
13
355