UNPKG

gitset

Version:

Enhanced git init with user configuration management

69 lines 1.84 kB
export interface GitStartConfig { directory: string; userName?: string; userEmail?: string; useGlobalConfig: boolean; autoInstallGit: boolean; } export interface CliOptions { directory?: string; global?: boolean; help?: boolean; version?: boolean; } export interface GitUserInfo { name: string; email: string; source: 'global' | 'local' | 'user-input'; } export type Platform = 'darwin' | 'linux' | 'win32'; export interface PlatformInfo { platform: Platform; arch: string; hasGit: boolean; gitVersion?: string; supported?: boolean; } export interface GitInitResult { success: boolean; directory: string; userInfo: GitUserInfo; errors?: string[]; warnings?: string[]; } export interface GitInstallStatus { installed: boolean; version?: string; installationPath?: string; canAutoInstall: boolean; } export interface ValidationResult { valid: boolean; errors: string[]; warnings?: string[]; } export interface DirectoryValidation extends ValidationResult { exists: boolean; writable: boolean; isEmpty: boolean; } export interface EmailValidation extends ValidationResult { format: boolean; domain?: string; } export declare enum ErrorType { VALIDATION_ERROR = "VALIDATION_ERROR", GIT_NOT_FOUND = "GIT_NOT_FOUND", PERMISSION_DENIED = "PERMISSION_DENIED", DIRECTORY_ERROR = "DIRECTORY_ERROR", INSTALLATION_FAILED = "INSTALLATION_FAILED", CONFIG_ERROR = "CONFIG_ERROR", NETWORK_ERROR = "NETWORK_ERROR" } export declare class GitStartError extends Error { type: ErrorType; recoverable: boolean; suggestion?: string | undefined; constructor(type: ErrorType, message: string, recoverable?: boolean, suggestion?: string | undefined); } //# sourceMappingURL=cli.d.ts.map