🔧 Added util scipts
This commit is contained in:
parent
54a836c258
commit
6247db6810
9
bin/auto-pr.ps1
Normal file
9
bin/auto-pr.ps1
Normal file
@ -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 { "$_ " })"
|
4
bin/checkurls.ps1
Normal file
4
bin/checkurls.ps1
Normal file
@ -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 { "$_ " })"
|
4
bin/checkver.ps1
Normal file
4
bin/checkver.ps1
Normal file
@ -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 { "$_ " })"
|
4
bin/formatjson.ps1
Normal file
4
bin/formatjson.ps1
Normal file
@ -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 { "$_ " })"
|
4
bin/missing-checkver.ps1
Normal file
4
bin/missing-checkver.ps1
Normal file
@ -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 { "$_ " })"
|
4
bin/test.ps1
Normal file
4
bin/test.ps1
Normal file
@ -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/.."
|
Loading…
x
Reference in New Issue
Block a user