Skip to content

Phase 6: Migrate MultiSelect and Multiline prompts to huh

Overview

Migrate less common prompt types.

Files

  1. internal/prompt/prompt.go:33 - MultiSelect helper
  2. internal/prompt/prompt.go:50 - Multiline helper
  3. All command files using these helpers

Implementation

// MultiSelect
var selected []string
huh.NewMultiSelect[string]().
    Title("Select labels:").
    Options(
        huh.NewOption("bug", "bug"),
        huh.NewOption("feature", "feature"),
    ).
    Value(&selected).
    Run()

// Multiline (use Text)
var text string
huh.NewText().
    Title("Enter description:").
    Value(&text).
    Lines(5).
    Run()

Success Criteria

  • MultiSelect works for label/tag selection
  • Multiline text input works with configurable height
  • Character limits work if needed

Effort: 2 days

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information