Documentation
¶
Overview ¶
Package picker provides a tiny searchable terminal picker. The stateful filtering/navigation logic is independent of terminal setup and is used by configure tests without a model call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Select ¶
func Select(ctx context.Context, in io.Reader, out io.Writer, options []Option, view View) (Option, Action, error)
Select reads one raw-key wizard screen without requiring a paid provider. A lone Escape is recognized after a short sequence window and therefore does not wait for a second byte forever on pipes or terminals.
Types ¶
type Option ¶
func EffortOptions ¶
func ModelOptions ¶
func Pick ¶
Pick is the small standalone searchable picker API. Escape and Ctrl+C both report cancellation; multi-screen callers should use Select to distinguish back navigation from cancellation.
func SpeedOptions ¶
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
Screen owns the alternate terminal buffer used by the configure wizard. Leaving it restores the caller's original terminal contents.
func (*Screen) ShowStatus ¶
ShowStatus replaces the alternate-screen contents while a wizard performs bounded work between interactive screens. This avoids presenting a blank terminal during provider authentication probes or model discovery.