UNPKG

vibe-tools

Version:
30 lines (29 loc) 1.26 kB
/** * Main orchestrator for Xcode-related commands in vibe-tools. * Implements the Command interface and manages subcommands for different Xcode operations. * * Currently supported subcommands: * - build: Builds the Xcode project and reports errors * - lint: Analyzes code and offers to fix warnings * - run: Builds and runs the app in simulator * * The command uses a subcommand pattern to keep the codebase organized and extensible. * Each subcommand is implemented as a separate class that handles its specific functionality. */ import type { Command, CommandGenerator, CommandOptions } from '../../types'; export declare class XcodeCommand implements Command { /** * Registry of available subcommands. * Each subcommand is instantiated once and reused for all invocations. */ private subcommands; /** * Main execution method for the Xcode command. * Parses the input query to determine which subcommand to run. * * @param query - The command query string (e.g., "build" or "run iphone") * @param options - Global command options that apply to all subcommands * @yields Status messages and command output */ execute(query: string, options: CommandOptions): CommandGenerator; }