gum/write/options.go
Maas Lalani a0e2cda3cb
feat: Add gum write command
Write provides a shell script interface for the text area bubble. It can
be used to ask the user to write some long form of text (multi-line)
input. The text the user entered will be sent to stdout.

```
gum write > output.text
```
2022-07-07 13:29:11 -04:00

12 lines
499 B
Go

package write
// Options are the customization options for the textarea.
type Options struct {
ShowCursorLine bool `help:"Show cursor line" default:"true"`
ShowLineNumbers bool `help:"Show line numbers" default:"true"`
Placeholder string `help:"Placeholder value" default:"Write something..."`
Prompt string `help:"Prompt to display" default:"┃ "`
Width int `help:"Text area width" default:"50"`
Height int `help:"Text area height" default:"5"`
}