Added verbose mode in hashFiles (#1052)

* Added verbose mode in hashFiles

* Code formatting

* Change verboseMode arg to verbose

Co-authored-by: Thomas Boop <[email protected]>

* Using verbose instead of verboseMode as arg

Co-authored-by: Thomas Boop <[email protected]>
This commit is contained in:
ruvceskistefan
2022-04-18 14:29:24 -04:00
committed by GitHub
co-authored by Thomas Boop
parent 7654d97eb6
commit 8f2bd5d713
2 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -26,12 +26,13 @@ export async function create(
*/
export async function hashFiles(
patterns: string,
options?: HashFileOptions
options?: HashFileOptions,
verbose: Boolean = false
): Promise<string> {
let followSymbolicLinks = true
if (options && typeof options.followSymbolicLinks === 'boolean') {
followSymbolicLinks = options.followSymbolicLinks
}
const globber = await create(patterns, {followSymbolicLinks})
return _hashFiles(globber)
return _hashFiles(globber, verbose)
}