@quasarbright/projection
Version:
A static site generator that creates a beautiful, interactive gallery to showcase your coding projects. Features search, filtering, tags, responsive design, and an admin UI.
42 lines • 1.48 kB
TypeScript
/**
* Result of Git repository validation
*/
export interface GitValidationResult {
isGitRepo: boolean;
hasRemote: boolean;
remoteName: string;
remoteUrl: string;
currentBranch: string;
}
/**
* Helper class for Git repository operations and validation
*/
export declare class GitHelper {
/**
* Check if Git is installed and available in PATH
* @returns Promise resolving to true if Git is installed, false otherwise
*/
static isGitInstalled(): Promise<boolean>;
/**
* Validate Git repository setup and configuration
* @param cwd Current working directory to check
* @param remote Git remote name to check (default: 'origin')
* @returns Promise resolving to validation result
*/
static validateRepository(cwd: string, remote?: string): Promise<GitValidationResult>;
/**
* Get the URL of a Git remote
* @param cwd Current working directory
* @param remote Git remote name (default: 'origin')
* @returns Promise resolving to remote URL or null if not found
*/
static getRepositoryUrl(cwd: string, remote?: string): Promise<string | null>;
/**
* Get the current Git branch name
* @param cwd Current working directory
* @returns Promise resolving to current branch name
* @throws Error if not in a Git repository or unable to determine branch
*/
static getCurrentBranch(cwd: string): Promise<string>;
}
//# sourceMappingURL=git-helper.d.ts.map