diff --git a/bin/auto-pr.ps1 b/bin/auto-pr.ps1 new file mode 100644 index 0000000..f3dde19 --- /dev/null +++ b/bin/auto-pr.ps1 @@ -0,0 +1,9 @@ +param( + # overwrite upstream param + [String]$upstream = "ScoopInstaller/Main:master" +) + +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } +$autopr = "$env:SCOOP_HOME/bin/auto-pr.ps1" +$dir = "$psscriptroot/.." # checks the parent dir +Invoke-Expression -command "$autopr -dir $dir -upstream $upstream $($args | ForEach-Object { "$_ " })" diff --git a/bin/checkurls.ps1 b/bin/checkurls.ps1 new file mode 100644 index 0000000..a48db3a --- /dev/null +++ b/bin/checkurls.ps1 @@ -0,0 +1,4 @@ +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } +$checkurls = "$env:SCOOP_HOME/bin/checkurls.ps1" +$dir = "$psscriptroot/.." # checks the parent dir +Invoke-Expression -command "$checkurls -dir $dir $($args | ForEach-Object { "$_ " })" diff --git a/bin/checkver.ps1 b/bin/checkver.ps1 new file mode 100644 index 0000000..49a7c06 --- /dev/null +++ b/bin/checkver.ps1 @@ -0,0 +1,4 @@ +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } +$checkver = "$env:SCOOP_HOME/bin/checkver.ps1" +$dir = "$psscriptroot/.." # checks the parent dir +Invoke-Expression -command "$checkver -dir $dir $($args | ForEach-Object { "$_ " })" diff --git a/bin/formatjson.ps1 b/bin/formatjson.ps1 new file mode 100644 index 0000000..e90b242 --- /dev/null +++ b/bin/formatjson.ps1 @@ -0,0 +1,4 @@ +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } +$formatjson = "$env:SCOOP_HOME/bin/formatjson.ps1" +$path = "$psscriptroot/.." # checks the parent dir +Invoke-Expression -command "$formatjson -dir $path $($args | ForEach-Object { "$_ " })" diff --git a/bin/missing-checkver.ps1 b/bin/missing-checkver.ps1 new file mode 100644 index 0000000..74aa34a --- /dev/null +++ b/bin/missing-checkver.ps1 @@ -0,0 +1,4 @@ +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } +$missing_checkver = "$env:SCOOP_HOME/bin/missing-checkver.ps1" +$dir = "$psscriptroot/.." # checks the parent dir +Invoke-Expression -command "$missing_checkver -dir $dir $($args | ForEach-Object { "$_ " })" diff --git a/bin/test.ps1 b/bin/test.ps1 new file mode 100644 index 0000000..71d4032 --- /dev/null +++ b/bin/test.ps1 @@ -0,0 +1,4 @@ +#requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '4.4.0' } + +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) } +Invoke-Pester "$psscriptroot/.."