Update tool-cache to 1.3.1

This commit is contained in:
Kristofer Borgström (pnf370)
2021-06-11 16:41:30 +02:00
parent 3c9ddfb1c6
commit dfb5e9e0e2
33 changed files with 4737 additions and 91 deletions

View File

@@ -6,9 +6,10 @@ export declare class HTTPError extends Error {
* Download a tool from an url and stream it into a file
*
* @param url url of tool to download
* @param dest path to download tool
* @returns path to downloaded tool
*/
export declare function downloadTool(url: string): Promise<string>;
export declare function downloadTool(url: string, dest?: string): Promise<string>;
/**
* Extract a .7z file
*
@@ -26,11 +27,11 @@ export declare function downloadTool(url: string): Promise<string>;
*/
export declare function extract7z(file: string, dest?: string, _7zPath?: string): Promise<string>;
/**
* Extract a tar
* Extract a compressed tar archive
*
* @param file path to the tar
* @param dest destination directory. Optional.
* @param flags flags for the tar. Optional.
* @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.
* @returns path to the destination directory
*/
export declare function extractTar(file: string, dest?: string, flags?: string): Promise<string>;