Documentation
¶
Overview ¶
Package prompt implements the interactive prompts on charmbracelet/huh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = errors.New("cancelled")
ErrCancelled reports that the user aborted a prompt.
Functions ¶
Types ¶
type IO ¶
IO carries a prompt's streams. All prompts go to ErrOut (stderr).
RawTTY selects the full-terminal UI and must only be true when stdin is a real terminal; otherwise huh runs in accessible mode reading In and writing ErrOut. On EOF, accessible prompts terminate with their default value rather than hang.
Click to show internal directories.
Click to hide internal directories.