Command framework
This commit is contained in:
19
lib/commands/types.tsx
Normal file
19
lib/commands/types.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
interface Flag {
|
||||
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[];
|
||||
execute: (flags: string[], args: string[], raw: string) => string[];
|
||||
}
|
||||
Reference in New Issue
Block a user