feat: add HWLAB dev CD CLI wrapper

This commit is contained in:
Codex
2026-05-23 13:38:24 +00:00
parent 663f55980b
commit 59776aa5d2
7 changed files with 1068 additions and 1 deletions
+9
View File
@@ -23,6 +23,7 @@ import { runGhCommand } from "./src/gh";
import { runCommanderCommand } from "./src/commander";
import { isHelpToken, rootHelp, serverHelp, sshHelp, staticNamespaceHelp } from "./src/help";
import { runServerCleanupCommand } from "./src/server-cleanup";
import { runHwlabCdCommand } from "./src/hwlab-cd";
const remoteOptions = extractRemoteCliOptions(process.argv.slice(2));
const args = remoteOptions.args;
@@ -267,6 +268,14 @@ async function main(): Promise<void> {
return;
}
if (top === "hwlab") {
const result = await runHwlabCdCommand(args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
const config = readConfig();
const autoRemoteCiPublishPlan = autoRemoteCiPublishUserServiceDryRunPlan(config, args);
if (autoRemoteCiPublishPlan.enabled && autoRemoteCiPublishPlan.host !== null) {