Documentation ¶
Overview ¶
Package input provides a shell script interface for the text input bubble. https://github.com/charmbracelet/bubbles/tree/master/textinput
It can be used to prompt the user for some input. The text the user entered will be sent to stdout.
$ gum input --placeholder "What's your favorite gum?" > answer.text
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Placeholder string `help:"Placeholder value" default:"Type something..."` Prompt string `help:"Prompt to display" default:"> "` PromptStyle style.Styles `embed:"" prefix:"prompt." set:"name=prompt"` CursorStyle style.Styles `embed:"" prefix:"cursor." set:"defaultForeground=212" set:"name=cursor"` Value string `help:"Initial value (can also be passed via stdin)" default:""` Width int `help:"Input width" default:"40"` }
Options are the customization options for the input.
func (Options) BeforeReset ¶
BeforeReset hook. Used to unclutter style flags.
func (Options) Run ¶
Run provides a shell script interface for the text input bubble. https://github.com/charmbracelet/bubbles/textinput
Click to show internal directories.
Click to hide internal directories.