Update toolkit we consume (#11)

This commit is contained in:
Danny McCormick
2019-06-24 15:09:39 -04:00
committed by GitHub
parent 7c614ea4aa
commit e4990368a5
26 changed files with 537 additions and 320 deletions

View File

@@ -62,10 +62,17 @@ export declare function cacheDir(sourceDir: string, tool: string, version: strin
*/
export declare function cacheFile(sourceFile: string, targetFile: string, tool: string, version: string, arch?: string): Promise<string>;
/**
* finds the path to a tool in the local installed tool cache
* Finds the path to a tool version in the local installed tool cache
*
* @param toolName name of the tool
* @param versionSpec version of the tool
* @param arch optional arch. defaults to arch of computer
*/
export declare function find(toolName: string, versionSpec: string, arch?: string): string;
/**
* Finds the paths to all versions of a tool that are installed in the local tool cache
*
* @param toolName name of the tool
* @param arch optional arch. defaults to arch of computer
*/
export declare function findAllVersions(toolName: string, arch?: string): string[];