Add Pennyzo API status checker scripts, report viewer, and documentation
This commit is contained in:
36
scripts/run-api-check.ps1
Normal file
36
scripts/run-api-check.ps1
Normal file
@@ -0,0 +1,36 @@
|
||||
# PowerShell script to run the Pennyzo API Status Checker
|
||||
|
||||
param (
|
||||
[switch]$Verbose,
|
||||
[switch]$NoReport,
|
||||
[switch]$UseRealCredentials,
|
||||
[switch]$Extended
|
||||
)
|
||||
|
||||
$ScriptArgs = @()
|
||||
|
||||
if ($Verbose) {
|
||||
$ScriptArgs += "--verbose"
|
||||
}
|
||||
|
||||
if ($NoReport) {
|
||||
$ScriptArgs += "--no-report"
|
||||
}
|
||||
|
||||
if ($UseRealCredentials) {
|
||||
$ScriptArgs += "--use-real-credentials"
|
||||
}
|
||||
|
||||
# Determine which script to run
|
||||
$ScriptPath = if ($Extended) {
|
||||
"scripts\api-status-checker-extended.js"
|
||||
}
|
||||
else {
|
||||
"scripts\api-status-checker.js"
|
||||
}
|
||||
|
||||
# Display command that will be executed
|
||||
Write-Host "Running: node $ScriptPath $ScriptArgs"
|
||||
|
||||
# Run the script
|
||||
node $ScriptPath $ScriptArgs
|
||||
Reference in New Issue
Block a user