mirror of
https://github.com/charmbracelet/gum
synced 2024-06-02 13:52:16 +02:00
2f07eacf50
Input provides a shell script interface for the text input bubble. 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 Bubble Gum flavor?" > answer.text ````
9 lines
284 B
Go
9 lines
284 B
Go
package input
|
|
|
|
// Options are the customization options for the input.
|
|
type Options struct {
|
|
Placeholder string `help:"Placeholder value" default:"Type something..."`
|
|
Prompt string `help:"Prompt to display" default:"> "`
|
|
Width int `help:"Input width" default:"20"`
|
|
}
|