@anycli/command
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -0,1 +1,9 @@ | ||
<a name="0.3.7"></a> | ||
## [0.3.7](https://github.com/anycli/command/compare/a8a9b25444e57bd3e3bdbd18656416f76431d9f5...v0.3.7) (2018-02-02) | ||
### Bug Fixes | ||
* config updates ([a311900](https://github.com/anycli/command/commit/a311900)) | ||
<a name="0.3.6"></a> | ||
@@ -2,0 +10,0 @@ ## [0.3.6](https://github.com/anycli/command/compare/bebe38ae0a294662996e8cef5be29112929db941...v0.3.6) (2018-02-02) |
import * as Config from '@anycli/config'; | ||
export interface ConvertToCachedOptions { | ||
id?: string; | ||
plugin?: Config.IPlugin; | ||
} | ||
export declare function convertToCached(c: Config.ICommand, opts?: ConvertToCachedOptions): Config.ICachedCommand; | ||
export declare function convertToCached(c: Config.ICommand, opts?: Config.IConvertToCachedOptions): Config.ICachedCommand; |
@@ -11,3 +11,3 @@ "use strict"; | ||
usage: c.usage, | ||
pluginName: opts.plugin && opts.plugin.name, | ||
pluginName: opts.pluginName, | ||
hidden: c.hidden, | ||
@@ -14,0 +14,0 @@ aliases: c.aliases || [], |
import * as Config from '@anycli/config'; | ||
import { args } from '@anycli/parser'; | ||
import { convertToCached, ConvertToCachedOptions } from './cache'; | ||
import * as flags from './flags'; | ||
@@ -26,3 +25,3 @@ export default abstract class Command { | ||
static load(): Promise<typeof default>; | ||
static convertToCached(this: Config.ICommand, opts?: ConvertToCachedOptions): Config.ICachedCommand; | ||
static convertToCached(this: Config.ICommand, opts?: Config.IConvertToCachedOptions): Config.ICachedCommand; | ||
config: Config.IConfig; | ||
@@ -47,2 +46,1 @@ description: null; | ||
} | ||
export { convertToCached, ConvertToCachedOptions }; |
@@ -8,3 +8,2 @@ "use strict"; | ||
const cache_1 = require("./cache"); | ||
exports.convertToCached = cache_1.convertToCached; | ||
const g = global; | ||
@@ -11,0 +10,0 @@ g.anycli = g.anycli || {}; |
@@ -1,5 +0,6 @@ | ||
import { parse } from '@anycli/parser'; | ||
import Command, { convertToCached } from './command'; | ||
export { parse } from '@anycli/parser'; | ||
export { convertToCached } from './cache'; | ||
import Command from './command'; | ||
import * as flags from './flags'; | ||
export default Command; | ||
export { convertToCached, Command, flags, parse }; | ||
export { Command, flags }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const parser_1 = require("@anycli/parser"); | ||
var parser_1 = require("@anycli/parser"); | ||
exports.parse = parser_1.parse; | ||
var cache_1 = require("./cache"); | ||
exports.convertToCached = cache_1.convertToCached; | ||
const command_1 = require("./command"); | ||
exports.Command = command_1.default; | ||
exports.convertToCached = command_1.convertToCached; | ||
const flags = require("./flags"); | ||
exports.flags = flags; | ||
exports.default = command_1.default; |
{ | ||
"name": "@anycli/command", | ||
"description": "anycli base command", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -9,3 +9,3 @@ "bugs": "https://github.com/anycli/command/issues", | ||
"@anycli/parser": "^3.0.4", | ||
"cli-ux": "^3.3.12", | ||
"cli-ux": "^3.3.13", | ||
"debug": "^3.1.0", | ||
@@ -16,4 +16,4 @@ "lodash": "^4.17.4", | ||
"devDependencies": { | ||
"@anycli/config": "^0.2.11", | ||
"@anycli/plugin-help": "^0.3.6", | ||
"@anycli/config": "^0.3.0", | ||
"@anycli/plugin-help": "^0.3.7", | ||
"@anycli/tslint": "^0.2.2", | ||
@@ -20,0 +20,0 @@ "@types/chai": "^4.1.2", |
27651
293
Updatedcli-ux@^3.3.13