2021-12-17 18:55:00 +01:00
|
|
|
export interface Flag {
|
2021-12-16 00:21:14 +01:00
|
|
|
short: string;
|
|
|
|
long: string;
|
|
|
|
desc: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface SubCommand {
|
|
|
|
name: string;
|
|
|
|
desc: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Command {
|
|
|
|
name: string;
|
|
|
|
hidden?: boolean;
|
|
|
|
desc: string;
|
|
|
|
flags?: Flag[];
|
|
|
|
subcommands?: SubCommand[];
|
2021-12-17 18:55:00 +01:00
|
|
|
execute: (flags: string[], args: string[], raw: string, extra?: any) => string[];
|
2021-12-16 00:21:14 +01:00
|
|
|
}
|