Commands: split static onboard auth choice help (#47545)

* Commands: split static onboard auth choice help

* Tests: cover static onboard auth choice help

* Changelog: note static onboard auth choice help
This commit is contained in:
Vincent Koc
2026-03-15 12:11:55 -07:00
committed by GitHub
parent c9a8b6f82f
commit dd2eb29038
6 changed files with 366 additions and 327 deletions

View File

@@ -9,8 +9,8 @@ const runtime = {
exit: vi.fn(),
};
vi.mock("../../commands/auth-choice-options.js", () => ({
formatAuthChoiceChoicesForCli: () => "token|oauth",
vi.mock("../../commands/auth-choice-options.static.js", () => ({
formatStaticAuthChoiceChoicesForCli: () => "token|oauth",
}));
vi.mock("../../commands/onboard-provider-auth-flags.js", () => ({

View File

@@ -1,5 +1,5 @@
import type { Command } from "commander";
import { formatAuthChoiceChoicesForCli } from "../../commands/auth-choice-options.js";
import { formatStaticAuthChoiceChoicesForCli } from "../../commands/auth-choice-options.static.js";
import type { GatewayDaemonRuntime } from "../../commands/daemon-runtime.js";
import { ONBOARD_PROVIDER_AUTH_FLAGS } from "../../commands/onboard-provider-auth-flags.js";
import type {
@@ -41,7 +41,7 @@ function resolveInstallDaemonFlag(
return undefined;
}
const AUTH_CHOICE_HELP = formatAuthChoiceChoicesForCli({
const AUTH_CHOICE_HELP = formatStaticAuthChoiceChoicesForCli({
includeLegacyAliases: true,
includeSkip: true,
});