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

Commit

Permalink
fix: make compatible with @dxcli/command
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 19, 2018
1 parent 3d52a07 commit 3ac9c6d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ export interface ICachedCommand {
id: string
hidden: boolean
aliases: string[]
description: string
usage: string
plugin: IPlugin
help: string
load(): ICommand
description?: string
usage?: string
plugin?: IPlugin
help?: string
load(): Promise<ICommand>
}

export interface ICommand extends ICachedCommand {
run(argv: string[], config: IConfig): Promise<void>
run(argv: string[], opts?: ICommandOptions): Promise<void>
}

export interface ICommandOptions {
root?: string
config?: IConfig
}

0 comments on commit 3ac9c6d

Please sign in to comment.