1 | export interface IValidate {
|
2 | (args: object): object;
|
3 | }
|
4 | export interface IAction {
|
5 | (args: object): object;
|
6 | }
|
7 | export interface ICommandArgs {
|
8 | params: string[];
|
9 | options: object;
|
10 | }
|
11 | export interface IValidate {
|
12 | (args: ICommandArgs): ICommandArgs | undefined;
|
13 | }
|
14 | export interface IAction {
|
15 | (args: ICommandArgs): Promise<any> | undefined;
|
16 | }
|
17 | export interface ICommand {
|
18 | name: string;
|
19 | alias: string[];
|
20 | description?: string;
|
21 | group?: string;
|
22 | args?: object;
|
23 | validate?: IValidate;
|
24 | action: IAction;
|
25 | }
|