mirror of
https://github.com/actions/toolkit
synced 2025-05-09 08:33:00 +00:00
Clarify that extractTar extracts gzipped tars (#134)
The default downloadTool implementation strips the filename so when passing it to the extractTar function, it doesn't have a way of knowing the format without manually specifying it. However what the extractTar function arguments meant and how to specify them wasn't clear before reading the source code, so the documentation here got updated to reflect that.
This commit is contained in:
parent
225370fc48
commit
9a3c005162
1 changed files with 2 additions and 2 deletions
|
@ -183,11 +183,11 @@ export async function extract7z(
|
|||
}
|
||||
|
||||
/**
|
||||
* 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 async function extractTar(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue