Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 26895f7

Browse files
committed
fix: fixed init hook arguments
1 parent 93b8f8d commit 26895f7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"lodash": "^4.17.4"
2222
},
2323
"devDependencies": {
24-
"@anycli/config": "^1.1.0",
24+
"@anycli/config": "^1.1.2",
2525
"@anycli/plugin-help": "^0.6.0",
2626
"@anycli/plugin-not-found": "^0.1.15",
27-
"@anycli/plugin-plugins": "^0.2.10",
27+
"@anycli/plugin-plugins": "^0.2.11",
2828
"@anycli/tslint": "^0.2.5",
2929
"@types/chai": "^4.1.2",
3030
"@types/fs-extra": "^5.0.0",

src/command.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default abstract class Command {
8383
cli.config.errlog = this.config.errlog
8484
global['http-call'] = global['http-call'] || {}
8585
global['http-call']!.userAgent = this.config.userAgent
86-
await this.config.runHook('init', {id: this.id})
86+
await this.config.runHook('init', {argv: this.argv})
8787
if (this._helpOverride()) return this._help()
8888
}
8989

yarn.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
load-json-file "^4.0.0"
1414
lodash "^4.17.4"
1515

16-
"@anycli/config@^1.1.0":
17-
version "1.1.0"
18-
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.1.0.tgz#22ef1b42ee9004aac7c1e53a3c2ff8d13da68e9f"
16+
"@anycli/config@^1.1.2":
17+
version "1.1.2"
18+
resolved "https://registry.yarnpkg.com/@anycli/config/-/config-1.1.2.tgz#751cf988f16a1257ec0973bb5171fbd5474b7080"
1919
dependencies:
2020
cli-ux "^3.3.13"
2121
debug "^3.1.0"
@@ -57,11 +57,11 @@
5757
cli-ux "^3.3.13"
5858
string-similarity "^1.2.0"
5959

60-
"@anycli/plugin-plugins@^0.2.10":
61-
version "0.2.10"
62-
resolved "https://registry.yarnpkg.com/@anycli/plugin-plugins/-/plugin-plugins-0.2.10.tgz#95d79cf971b631390df1fe20ffc948ea3639c724"
60+
"@anycli/plugin-plugins@^0.2.11":
61+
version "0.2.11"
62+
resolved "https://registry.yarnpkg.com/@anycli/plugin-plugins/-/plugin-plugins-0.2.11.tgz#8e2d42614db0b5c3f06fbdf059352c14afaedeba"
6363
dependencies:
64-
"@anycli/command" "^1.2.2"
64+
"@anycli/command" "^1.2.3"
6565
"@heroku-cli/color" "^1.1.3"
6666
chalk "^2.3.0"
6767
cli-ux "^3.3.13"

0 commit comments

Comments
 (0)