fix: scope gh subcommand help output

This commit is contained in:
Codex
2026-06-16 01:34:38 +00:00
parent 7eadf39529
commit 028679cfcb
3 changed files with 106 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { ghHelp } from "./gh";
import { ghHelp, ghScopedHelp } from "./gh";
import { authBrokerHelp } from "./auth-broker";
import { platformDbHelp } from "./platform-db";
import { secretsHelp } from "./secrets";
@@ -724,7 +724,7 @@ export async function staticNamespaceHelp(args: string[]): Promise<unknown | nul
if (top === "dev-env") return devEnvHelp();
if (top === "artifact-registry") return artifactRegistryHelp();
if (top === "auth-broker") return authBrokerHelp();
if (top === "gh") return ghHelp();
if (top === "gh") return ghScopedHelp(args.slice(1)) ?? ghHelp();
if (top === "agentrun") return loadHelp(async () => (await import("./agentrun")).agentRunHelp(), agentRunHelpSummary());
if (top === "platform-infra") return loadHelp(async () => (await import("./platform-infra")).platformInfraHelp(), platformInfraHelpSummary());
if (top === "platform-db") return platformDbHelp();