feat: manage frontend auth from YAML source
Pipelines as Code CI / hwlab-web-probe-sentinel-nc01- Success

This commit is contained in:
Codex
2026-07-09 15:20:54 +02:00
parent 61d05dccf9
commit 44b716538e
5 changed files with 591 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
import type { UniDeskConfig } from "./config";
import type { RenderedCliResult } from "./output";
import { runFrontendAuthCommand } from "./frontend-auth";
import { runFrontendPublicExposureCommand } from "./frontend-public-exposure";
export async function runFrontendCommand(config: UniDeskConfig, args: string[]): Promise<Record<string, unknown> | RenderedCliResult> {
const [scope = "public-exposure"] = args;
if (scope === "auth") return await runFrontendAuthCommand(config, args.slice(1));
if (scope === "public-exposure") return await runFrontendPublicExposureCommand(config, args);
return {
ok: false,
error: "unsupported-frontend-command",
command: "frontend",
supportedScopes: ["auth", "public-exposure"],
examples: [
"bun scripts/cli.ts frontend auth plan",
"bun scripts/cli.ts frontend auth apply --confirm",
"bun scripts/cli.ts frontend public-exposure validate",
],
};
}