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

Added NoCode param

This commit is contained in:
Jaap Brasser
2019-07-20 20:03:25 -07:00
committed by GitHub
parent d2acba4c9a
commit b97dc8fb0b

View File

@@ -15,7 +15,8 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi
[cmdletbinding(SupportsShouldProcess)]
param(
[string] $Uri,
[string] $Path = 'C:\Temp'
[string] $Path = 'C:\Temp',
[switch] $NoCode
)
$Request = Invoke-WebRequest $Uri
@@ -36,6 +37,12 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi
git clone --single-branch --branch $Values.Branch $Values.GitHubUri
Set-Location (Get-ChildItem).fullname
# open VScode
If (!$nocode) {
code .
}
# Retrieve status of the current branch
git status