UNPKG

datapilot-cli

Version:

Enterprise-grade streaming multi-format data analysis with comprehensive statistical insights and intelligent relationship detection - supports CSV, JSON, Excel, TSV, Parquet - memory-efficient, cross-platform

67 lines 1.7 kB
/** * CLI Argument Parser and Validator */ import type { CLIContext } from './types'; export declare class ArgumentParser { private program; constructor(); /** * Parse command line arguments */ parse(argv: string[]): CLIContext; /** * Set up all CLI commands and options */ private setupCommands; /** * Create command handler that stores context for later execution */ private createCommandHandler; /** * Create join command handler for multi-file operations */ private createJoinCommandHandler; /** * Create command handler for commands that don't require a file argument */ private createNoFileCommandHandler; /** * Create stub handler for unimplemented sections */ private createStubHandler; /** * Get section number for display */ private getSectionNumber; /** * Validate and normalize CLI options */ private validateOptions; /** * Validate file path and accessibility */ validateFile(filePath: string): string; /** * Parse integer with validation */ private parseInteger; private parseFloat; /** * Parse sections parameter (comma-separated list) */ private parseSections; /** * Parse file size string to bytes (e.g., "100MB" -> 104857600) */ private parseSizeToBytes; /** * Get the stored command context (used by main CLI) */ getLastContext(): CLIContext | null; /** * Show help for specific command or general help */ showHelp(command?: string): void; getVersion(): string; } //# sourceMappingURL=argument-parser.d.ts.map