@anycli/plugin-version
Advanced tools
@@ -1,1 +0,1 @@ | ||
| {"version":"0.1.33","commands":{"version":{"id":"version","aliases":[],"flags":{"version":{"name":"version","type":"boolean","char":"v","description":"show CLI version"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help"}},"args":[]}}} | ||
| {"version":"0.1.34","commands":{"version":{"id":"version","aliases":[],"flags":{"version":{"name":"version","type":"boolean","char":"v","description":"show CLI version"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help"}},"args":[]}}} |
+8
-0
@@ -0,1 +1,9 @@ | ||
| <a name="0.1.34"></a> | ||
| ## [0.1.34](https://github.com/anycli/plugin-version/compare/cc4973888155762576863aed3cccec98c8a779e4...v0.1.34) (2018-02-03) | ||
| ### Bug Fixes | ||
| * remove hook in favor of flag ([13e347b](https://github.com/anycli/plugin-version/commit/13e347b)) | ||
| <a name="0.1.33"></a> | ||
@@ -2,0 +10,0 @@ ## [0.1.33](https://github.com/anycli/plugin-version/compare/f600072af0ccf146f3b53aad58f701f82235521e...v0.1.33) (2018-02-03) |
+2
-5
| { | ||
| "name": "@anycli/plugin-version", | ||
| "description": "a anycli command that just shows the CLI version", | ||
| "version": "0.1.33", | ||
| "version": "0.1.34", | ||
| "author": "Jeff Dickey @jdxcode", | ||
| "anycli": { | ||
| "commands": "./lib/commands", | ||
| "hooks": { | ||
| "init": "./lib/hooks/init" | ||
| } | ||
| "commands": "./lib/commands" | ||
| }, | ||
@@ -12,0 +9,0 @@ "bugs": "https://github.com/anycli/plugin-version/issues", |
| import { Hook } from '@anycli/config'; | ||
| declare const hook: Hook<'init'>; | ||
| export default hook; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const cli_ux_1 = require("cli-ux"); | ||
| const version_1 = require("../commands/version"); | ||
| const hook = async (opts) => { | ||
| if (['-v', '--version'].includes(opts.id)) { | ||
| await version_1.default.run([], opts.config); | ||
| cli_ux_1.default.exit(0); | ||
| } | ||
| }; | ||
| exports.default = hook; |
12082
-2%8
-20%21
-40%