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

This commit is contained in:
Dandaedre 2026-11-20 10:13:12 +01:00
parent f9993c9c03
commit 28a9dd6943
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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):