@anycli/command
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -0,1 +1,9 @@ | ||
<a name="0.2.12"></a> | ||
## [0.2.12](https://github.com/anycli/command/compare/1db83e93450be1e08e9cda672e41fd3466c69836...v0.2.12) (2018-01-31) | ||
### Bug Fixes | ||
* fixed command options ([fd71035](https://github.com/anycli/command/commit/fd71035)) | ||
<a name="0.2.11"></a> | ||
@@ -2,0 +10,0 @@ ## [0.2.11](https://github.com/anycli/command/compare/d674fcfab555c54203d79a8e1802e6b60ef691b2...v0.2.11) (2018-01-31) |
@@ -5,3 +5,3 @@ import * as Config from '@anycli/config'; | ||
import * as flags from './flags'; | ||
export declare type CommandRunFn = <T extends Command>(this: ICommandClass<T>, argv?: string[], opts?: Config.IConfig | Config.ICommandOptions) => Promise<void>; | ||
export declare type CommandRunFn = <T extends Command>(this: ICommandClass<T>, argv?: string[], opts?: Config.ICommandOptions) => Promise<void>; | ||
export interface ICommandClass<T extends Command> { | ||
@@ -8,0 +8,0 @@ run: CommandRunFn; |
@@ -75,4 +75,4 @@ "use strict"; | ||
let config; | ||
if (Config.isIConfig(opts)) | ||
config = opts; | ||
if (opts.config && Config.isIConfig(opts.config)) | ||
config = opts.config; | ||
else | ||
@@ -79,0 +79,0 @@ config = await Config.read({ root: opts.root || parentModule }); |
{ | ||
"name": "@anycli/command", | ||
"description": "anycli base command", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/anycli/command/issues", |
22532