go-git-it
Version:
Download any repository or subdirectory on GitHub with support for Node.js and the CLI
12 lines (11 loc) • 681 B
TypeScript
export declare function generateTempDirName(): string;
export declare function removeDirectory(dirPath: string): Promise<void>;
export declare function cleanupGitDirectory(repoPath: string): Promise<void>;
export declare function createDirectory(dirPath: string): Promise<void>;
export declare function pathExists(targetPath: string): Promise<boolean>;
export declare function moveFileOrDirectory(source: string, destination: string): Promise<void>;
export declare function executeGitCommand(command: string, options?: {
cwd: string;
timeout?: number;
}): Promise<string>;
export declare function cleanupTempDirectory(tempPath: string, maxRetries?: number): Promise<void>;