More commands

This commit is contained in:
2021-12-17 20:02:42 +01:00
parent a24692e3ed
commit 9ea06a16fe
6 changed files with 92 additions and 21 deletions

View File

@@ -13,7 +13,7 @@ export interface Command {
name: string;
hidden?: boolean;
desc: string;
flags?: Flag[];
subcommands?: SubCommand[];
flags?: Record<string,Flag>;
subcommands?: Record<string,SubCommand>;
execute: (flags: string[], args: string[], raw: string, extra?: any) => string[];
}