fix: bootstrap hwlab v02 admin api key secret

This commit is contained in:
Codex
2026-06-05 13:55:38 +00:00
parent 171325f48d
commit cb0f508dc7
4 changed files with 213 additions and 12 deletions
+2 -1
View File
@@ -11,11 +11,12 @@ export interface CommandResult {
timedOut: boolean;
}
export function runCommand(command: string[], cwd: string, options: { timeoutMs?: number; env?: NodeJS.ProcessEnv } = {}): CommandResult {
export function runCommand(command: string[], cwd: string, options: { timeoutMs?: number; env?: NodeJS.ProcessEnv; input?: string } = {}): CommandResult {
const result = spawnSync(command[0], command.slice(1), {
cwd,
encoding: "utf8",
env: options.env,
input: options.input,
maxBuffer: 1024 * 1024 * 8,
timeout: options.timeoutMs,
});