export interface ICli { routes: ICliRoutes[]; } export interface ICliOption { flags: string; description?: string; defaultValue?: string | boolean; } export interface ICliRoutes { description: string; options?: ICliOption[]; command: string; handler?: (args: any) => Promise; subCommands?: { description: string; options?: ICliOption[]; command: string; handler: (args: any) => Promise; }[]; }