feat: add HWLAB node lane secret CLI

This commit is contained in:
Codex
2026-06-08 09:47:43 +00:00
parent 25bee7b3cd
commit 6b48a9e682
3 changed files with 516 additions and 1 deletions
+8
View File
@@ -26,6 +26,7 @@ import { isHelpToken, rootHelp, serverHelp, sshHelp, staticNamespaceHelp } from
import { runServerCleanupCommand } from "./src/server-cleanup";
import { runHwlabCdCommand } from "./src/hwlab-cd";
import { runHwlabG14Command } from "./src/hwlab-g14";
import { runHwlabNodeCommand } from "./src/hwlab-node";
import { runGcCommand } from "./src/gc";
import { runAgentRunCommand } from "./src/agentrun";
@@ -290,6 +291,13 @@ async function main(): Promise<void> {
}
if (top === "hwlab") {
if (sub === "node" || sub === "nodes") {
const result = await runHwlabNodeCommand(readConfig(), args.slice(2));
const ok = (result as { ok?: unknown }).ok !== false;
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
if (sub === "g14") {
const result = await runHwlabG14Command(readConfig(), args.slice(2));
const ok = (result as { ok?: unknown }).ok !== false;