1
0
mirror of https://github.com/jaapbrasser/SharedScripts.git synced 2025-12-24 21:51:38 +02:00

Added explorer.exe switch

This commit is contained in:
Jaap Brasser
2019-08-08 23:51:22 +02:00
parent ce05311736
commit bbac929ecf

View File

@@ -19,7 +19,9 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi
# The path where the PRs will be cloned to, defaults to C:\Windows, should be specified on non-Windows systems
[string] $Path = 'C:\Temp',
# If this parameter is specified VScode will not automatically open after pulling in the PR
[switch] $NoCode
[switch] $NoCode,
# If this parameter explorer will be launched in current path
[switch] $Explorer
)
$Request = Invoke-WebRequest $Uri
@@ -48,5 +50,9 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi
If (!$nocode) {
code .
}
} catch {}
if ($Explorer) {
explorer.exe .
}
} catch {}
}