cli-engine-command
Advanced tools
Comparing version 11.0.7 to 11.0.8
@@ -10,3 +10,3 @@ import { ConfigOptions, IConfig, IPlugin } from 'cli-engine-config'; | ||
} | ||
export declare type CommandRunFn = <T extends Command>(this: ICommandClass<T>, argv?: string[], config?: ConfigOptions) => Promise<T>; | ||
export declare type CommandRunFn = <T extends Command>(this: ICommandClass<T>, argv: string[], config: IConfig) => Promise<T>; | ||
export declare type CommandMockFn = <T extends Command>(this: ICommandClass<T>, argv?: string[], config?: ConfigOptions) => Promise<IMockReturn<T>>; | ||
@@ -13,0 +13,0 @@ export interface ICommandClass<T extends Command> { |
@@ -60,3 +60,3 @@ "use strict"; | ||
deps_1.default.cli.config.mock = true; | ||
const cmd = await this.run(argv, config); | ||
const cmd = await this.run(argv, deps_1.default.Config.buildConfig(config)); | ||
return { | ||
@@ -71,4 +71,4 @@ cmd, | ||
*/ | ||
Command.run = async function (argv = [], config = {}) { | ||
const cmd = new this(deps_1.default.Config.buildConfig(config)); | ||
Command.run = async function (argv = [], config) { | ||
const cmd = new this(config); | ||
try { | ||
@@ -75,0 +75,0 @@ await cmd.init(argv); |
{ | ||
"name": "cli-engine-command", | ||
"description": "base CLI command for cli-engine", | ||
"version": "11.0.7", | ||
"version": "11.0.8", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -17,3 +17,3 @@ "bugs": "https://github.com/heroku/cli-engine-command/issues", | ||
"cli-engine-config": "5.0.6", | ||
"cli-ux": "^2.0.11", | ||
"cli-ux": "^2.0.12", | ||
"del-cli": "1.1.0", | ||
@@ -20,0 +20,0 @@ "http-call": "^4.0.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14876