Skip to content

Commit c6fea02

Browse files
authored
Default 'Install dependencies?' prompt to yes in agent create TUI (#885)
The install confirm seeded its cursor from cmd.Bool("install"), which is false when the flag isn't passed, leaving the prompt defaulted to No. Seed install=true before the form so the common case (Yes) is preselected.
1 parent 3d906ce commit c6fea02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/lk/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ func setupTemplate(ctx context.Context, cmd *cli.Command) error {
430430
bootstrap.WriteDotEnv(appName, envOutputFile, env, true)
431431

432432
if !cmd.IsSet("install") && !SkipPrompts(cmd) {
433+
// Default the prompt to "yes" — installing deps is the common case.
434+
install = true
433435
if err := huh.NewForm(huh.NewGroup(util.Confirm().
434436
Title("Install dependencies?").
435437
Value(&install).

0 commit comments

Comments
 (0)