mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
Onboarding: drop completion prompt
This commit is contained in:
@@ -10,7 +10,6 @@ import type { QuickstartGatewayDefaults, WizardFlow } from "./onboarding.types.j
|
||||
import { ensureAuthProfileStore } from "../agents/auth-profiles.js";
|
||||
import { listChannelPlugins } from "../channels/plugins/index.js";
|
||||
import { formatCliCommand } from "../cli/command-format.js";
|
||||
import { installCompletion } from "../cli/completion-cli.js";
|
||||
import { promptAuthChoiceGrouped } from "../commands/auth-choice-prompt.js";
|
||||
import {
|
||||
applyAuthChoice,
|
||||
@@ -468,16 +467,4 @@ export async function runOnboardingWizard(
|
||||
if (launchedTui) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user