@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
10 lines (9 loc) • 966 B
TypeScript
export declare function getGlobalBinDir(): Promise<string>;
export declare function getLatestGraphNodeRelease(): Promise<string>;
export declare function downloadGraphNodeRelease(release: string, outputDir: string, onProgress?: (downloaded: number, total: number | null) => void): Promise<string>;
export declare function downloadFile(url: string, outputPath: string, onProgress?: (downloaded: number, total: number | null) => void): Promise<string>;
export declare function download(url: string, outputPath: string, onProgress?: (downloaded: number, total: number | null) => void): Promise<string>;
export declare function extractGz(gzPath: string, outputPath?: string): Promise<string>;
export declare function extractZipAndGetExe(zipPath: string, outputDir: string): Promise<string>;
export declare function moveFileToBinDir(srcPath: string, binDir?: string): Promise<string>;
export declare function moveFile(srcPath: string, destPath: string): Promise<string>;