@anycli/command
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,10 @@ | ||
<a name="1.1.1"></a> | ||
## [1.1.1](https://github.com/anycli/command/compare/a21563609a404cd274942b55e1cf41ac0724a014...v1.1.1) (2018-02-03) | ||
### Bug Fixes | ||
* export main ([6815883](https://github.com/anycli/command/commit/6815883)) | ||
* fixed parent module path ([6d090ae](https://github.com/anycli/command/commit/6d090ae)) | ||
<a name="1.1.0"></a> | ||
@@ -2,0 +11,0 @@ # [1.1.0](https://github.com/anycli/command/compare/209d4fff5eeca27768ef5fba96512408d2817cc4...v1.1.0) (2018-02-03) |
@@ -5,3 +5,4 @@ import * as Config from '@anycli/config'; | ||
export { parse } from '@anycli/parser'; | ||
export { Main } from './main'; | ||
export default Command; | ||
export { Config, Command, flags }; |
@@ -11,2 +11,4 @@ "use strict"; | ||
exports.parse = parser_1.parse; | ||
var main_1 = require("./main"); | ||
exports.Main = main_1.Main; | ||
exports.default = command_1.default; |
@@ -0,3 +1,4 @@ | ||
import * as Config from '@anycli/config'; | ||
import { Command } from '.'; | ||
export default class Main extends Command { | ||
export declare class Main extends Command { | ||
static parserOptions: { | ||
@@ -7,3 +8,4 @@ '--': boolean; | ||
}; | ||
static run(argv?: string[], opts?: Config.Options): Promise<any>; | ||
run(): Promise<void>; | ||
} |
@@ -5,2 +5,5 @@ "use strict"; | ||
class Main extends _1.Command { | ||
static run(argv = process.argv.slice(2), opts) { | ||
return super.run(argv, opts || module.parent && module.parent.parent && module.parent.parent.filename || __dirname); | ||
} | ||
async run() { | ||
@@ -12,2 +15,2 @@ const [id, ...argv] = this.argv; | ||
Main.parserOptions = { '--': false, strict: false }; | ||
exports.default = Main; | ||
exports.Main = Main; |
{ | ||
"name": "@anycli/command", | ||
"description": "anycli base command", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/anycli/command/issues", |
29339
277