UNPKG

forge-deploy-cli

Version:

Professional CLI for local deployments with automatic subdomain routing, SSL certificates, and infrastructure management

48 lines 1.3 kB
export interface CloneOptions { branch?: string; depth?: number; recursive?: boolean; targetDir?: string; } export interface CloneResult { success: boolean; localPath?: string; error?: string; } export declare class GitService { private static readonly DEFAULT_CLONE_DIR; /** * Clone a Git repository to a local directory */ static cloneRepository(repoUrl: string, options?: CloneOptions): Promise<CloneResult>; /** * Update an existing cloned repository */ static updateRepository(localPath: string, branch?: string): Promise<CloneResult>; /** * Clean up old cloned repositories */ static cleanupOldRepositories(maxAge?: number): Promise<void>; /** * Check if a directory is a valid git repository */ static isGitRepository(path: string): Promise<boolean>; /** * Get repository information */ static getRepositoryInfo(localPath: string): Promise<{ branch: string; commit: string; remoteUrl: string; shortCommit: string; }>; /** * Extract repository name from URL */ private static extractRepoName; /** * Validate repository URL */ static isValidGitUrl(url: string): boolean; } //# sourceMappingURL=git.d.ts.map