UNPKG

gitset

Version:

Enhanced git init with user configuration management

56 lines 1.82 kB
#!/usr/bin/env node import { Command } from 'commander'; import { WorkflowOrchestrator } from '../core/workflow-orchestrator.js'; import { CliOptions } from '../types/cli.js'; /** * Command Line Interface for gitset * Focused on CLI concerns only - delegates business logic to WorkflowOrchestrator */ export declare class GitStartCLI { private program; private orchestrator; constructor(orchestrator?: WorkflowOrchestrator); /** * Configure CLI commands and options */ private setupCommands; /** * Parse command line arguments */ parseArguments(args: string[]): Promise<CliOptions & { directory: string; }>; /** * Execute the main workflow with proper error handling */ private executeWorkflow; /** * Handle errors with appropriate user feedback and exit codes */ private handleError; /** * Determine if we should exit the process */ private shouldExitProcess; /** * Main entry point for the CLI application */ static main(): Promise<void>; /** * Get the commander program instance (for testing) */ getProgram(): Command; /** * Get the workflow orchestrator (for testing) */ getOrchestrator(): WorkflowOrchestrator; /** * Legacy methods for backward compatibility with tests * These delegate to the appropriate components */ checkGitInstallation(): Promise<import("../types/cli.js").GitInstallStatus>; getGlobalGitConfig(): Promise<import("../types/cli.js").GitUserInfo>; validateDirectory(directory: string): Promise<import("../types/cli.js").DirectoryValidation>; initializeGitRepository(directory: string, userInfo: any): Promise<import("../types/cli.js").GitInitResult>; } //# sourceMappingURL=index.d.ts.map