mirror of
https://github.com/charmbracelet/gum
synced 2024-06-06 15:52:16 +02:00
a0e2cda3cb
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 ```
12 lines
499 B
Go
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"`
|
|
}
|