UNPKG

crewai-ts

Version:

TypeScript port of crewAI for agent-based workflows

37 lines 964 B
/** * Base command class for CLI commands. * Optimized for extensibility and type safety. */ export declare abstract class Command { /** * Name of the command (used in CLI) */ abstract readonly name: string; /** * Description of the command (shown in help) */ abstract readonly description: string; /** * Command arguments format */ abstract readonly syntax: string; /** * Examples of how to use the command */ abstract readonly examples: string[]; /** * Execute the command with the given arguments * @param args Command line arguments */ abstract execute(args: string[]): Promise<void>; /** * Parse and validate command arguments * @param args Command line arguments */ protected parseArgs(args: string[]): Record<string, any>; /** * Format and show command help */ showHelp(): void; } //# sourceMappingURL=Command.d.ts.map