Onboarding: drop completion prompt
parent
9950440cf6
commit
981de05181
|
|
@ -10,7 +10,6 @@ import type { QuickstartGatewayDefaults, WizardFlow } from "./onboarding.types.j
|
||||||
import { ensureAuthProfileStore } from "../agents/auth-profiles.js";
|
import { ensureAuthProfileStore } from "../agents/auth-profiles.js";
|
||||||
import { listChannelPlugins } from "../channels/plugins/index.js";
|
import { listChannelPlugins } from "../channels/plugins/index.js";
|
||||||
import { formatCliCommand } from "../cli/command-format.js";
|
import { formatCliCommand } from "../cli/command-format.js";
|
||||||
import { installCompletion } from "../cli/completion-cli.js";
|
|
||||||
import { promptAuthChoiceGrouped } from "../commands/auth-choice-prompt.js";
|
import { promptAuthChoiceGrouped } from "../commands/auth-choice-prompt.js";
|
||||||
import {
|
import {
|
||||||
applyAuthChoice,
|
applyAuthChoice,
|
||||||
|
|
@ -468,16 +467,4 @@ export async function runOnboardingWizard(
|
||||||
if (launchedTui) {
|
if (launchedTui) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const installShell = await prompter.confirm({
|
|
||||||
message: "Install shell completion script?",
|
|
||||||
initialValue: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (installShell) {
|
|
||||||
const shell = process.env.SHELL?.split("/").pop() || "zsh";
|
|
||||||
// We pass 'yes=true' to skip any double-confirmation inside the helper,
|
|
||||||
// as the wizard prompt above serves as confirmation.
|
|
||||||
await installCompletion(shell, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue