gum/input/options.go
Maas Lalani 2f07eacf50
feat: Add gum input command
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
````
2022-07-07 13:28:52 -04:00

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"`
}