Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: export arg type
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 6, 2018
1 parent 459ad24 commit 4b07526
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4b07526

Please sign in to comment.