From f2344a8a43797c57c708949d1540d8ffc4b4827f Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 31 Jan 2018 18:04:39 -0800 Subject: [PATCH] fix: set flags/args to parser types --- package.json | 1 + src/command.ts | 4 ++++ yarn.lock | 8 ++++++++ 3 files changed, 13 insertions(+) diff --git a/package.json b/package.json index 47d402a6..8a78c728 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "read-pkg": "^3.0.0" }, "devDependencies": { + "@anycli/parser": "^3.0.2", "@anycli/tslint": "^0.2.1", "@commitlint/cli": "^6.0.5", "@commitlint/config-conventional": "^6.0.4", diff --git a/src/command.ts b/src/command.ts index 02f788bc..cb024d9f 100644 --- a/src/command.ts +++ b/src/command.ts @@ -1,3 +1,5 @@ +import * as Parser from '@anycli/parser' + import {IConfig} from './config' import {IPlugin} from './plugin' @@ -17,6 +19,8 @@ export interface ICachedCommand { } export interface IConvertToCachedOptions { + flags?: Parser.flags.Input + args?: Parser.args.Input id?: string plugin?: IPlugin } diff --git a/yarn.lock b/yarn.lock index d1a6e24c..27ba25e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,14 @@ # yarn lockfile v1 +"@anycli/parser@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@anycli/parser/-/parser-3.0.2.tgz#69af00b6b6f0cc6da4405cf44dc29b2d14d30c6e" + dependencies: + "@anycli/screen" "^0.0.3" + chalk "^2.3.0" + lodash "^4.17.4" + "@anycli/screen@^0.0.3": version "0.0.3" resolved "https://registry.yarnpkg.com/@anycli/screen/-/screen-0.0.3.tgz#f0afd970c3ed725702948a45a874ede1fdd9362e"