gitset
Version:
Enhanced git init with user configuration management
40 lines • 1.09 kB
TypeScript
import { GitInstallStatus, GitUserInfo, PlatformInfo } from '../types/cli.js';
/**
* Detects Git installation and retrieves Git configuration
* Uses optimized command execution with caching for better performance
*/
export declare class GitDetector {
/**
* Check if Git is installed on the system
*/
checkInstallation(): Promise<GitInstallStatus>;
/**
* Get global Git configuration (cached for performance)
*/
getGlobalConfig(): Promise<GitUserInfo>;
/**
* Detect current platform information
*/
detectPlatform(): PlatformInfo;
/**
* Get Git installation path
*/
private getGitPath;
/**
* Execute system command (not Git command)
*/
private executeSystemCommand;
/**
* Parse Git version from version string
*/
private parseGitVersion;
/**
* Check if Git can be automatically installed on this platform
*/
private canAutoInstall;
/**
* Check if a command exists on the system
*/
private commandExists;
}
//# sourceMappingURL=git-detector.d.ts.map