gumchoose

package
v1.21.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package gumchoose vendors the choose implementation from charmbracelet/gum. It is adapted for local use in clicky's prompt APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Header           string
	Height           int
	Cursor           string
	ShowHelp         bool
	Limit            int
	Ordered          bool
	InitialIndex     int
	SelectedPrefix   string
	UnselectedPrefix string
}

Options configures the vendored chooser.

type Result

type Result struct {
	Submitted bool
	Indexes   []int
}

Result is the outcome of a chooser run.

func Run

func Run(input io.Reader, output io.Writer, items []string, opts Options) (Result, error)

Run executes the vendored chooser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL