From 4b075269c2e38b48abceddfa2d7071f73f54ff1d Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Tue, 6 Feb 2018 15:37:52 -0800 Subject: [PATCH] fix: export arg type --- src/command.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/command.ts b/src/command.ts index 16398462..41e68abe 100644 --- a/src/command.ts +++ b/src/command.ts @@ -14,17 +14,19 @@ export interface Command { pluginName?: string pluginType?: string flags: {[name: string]: Command.Flag} - args: { + args: Command.Arg[] +} + +export namespace Command { + export interface Arg { name: string description?: string required?: boolean hidden?: boolean default?: string options?: string[] - }[] -} + } -export namespace Command { export type Flag = Flag.Boolean | Flag.Option export namespace Flag {