You've already forked SharedScripts
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user