diff --git a/src/command.ts b/src/command.ts index c206279b..ac7217c1 100644 --- a/src/command.ts +++ b/src/command.ts @@ -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 } export interface ICommand extends ICachedCommand { - run(argv: string[], config: IConfig): Promise + run(argv: string[], opts?: ICommandOptions): Promise +} + +export interface ICommandOptions { + root?: string + config?: IConfig }