Fix portable launcher structural validation
Config Central CI Config Central passed all CI integrity checks.
Beffroi/config-central/pipeline/head This commit looks good
Details
Config Central CI Config Central passed all CI integrity checks.
Beffroi/config-central/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f9993c9c03
commit
28a9dd6943
|
|
@ -20,6 +20,7 @@ function Write-ConfigCentralMessage {
|
|||
else { Write-Host $Message }
|
||||
}
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
try {
|
||||
$receipt = Get-Content -LiteralPath (Join-Path $PSScriptRoot 'current.json') -Raw | ConvertFrom-Json
|
||||
|
|
|
|||
|
|
@ -91,7 +91,19 @@ def main() -> int:
|
|||
except json.JSONDecodeError as exc:
|
||||
errors.append(f"{path.relative_to(ROOT)}: {exc}")
|
||||
|
||||
required_cli_markers = ("doctor", "plan", "apply", "sync", "status", "configs", "restore", "schedule", "unschedule", "menu")
|
||||
required_cli_markers = (
|
||||
"doctor",
|
||||
"plan",
|
||||
"apply",
|
||||
"sync",
|
||||
"update-software",
|
||||
"status",
|
||||
"configs",
|
||||
"restore",
|
||||
"schedule",
|
||||
"unschedule",
|
||||
"menu",
|
||||
)
|
||||
cli = (ROOT / "cc.ps1").read_text(encoding="utf-8-sig")
|
||||
for marker in required_cli_markers:
|
||||
if not re.search(rf"['\"]{re.escape(marker)}['\"]", cli):
|
||||
|
|
|
|||
Loading…
Reference in New Issue