UNPKG

402 BTypeScriptView Raw
1import { IConfig } from './config';
2import { IPlugin } from './plugin';
3export interface ICachedCommand {
4 id?: string;
5 base: string;
6 hidden: boolean;
7 aliases: string[];
8 description: string;
9 usage: string;
10 plugin: IPlugin;
11 help: string;
12 load(): ICommand;
13}
14export interface ICommand extends ICachedCommand {
15 run(argv: string[], config: IConfig): Promise<void>;
16}