edit

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Width       int    `help:"Text area width" default:"0" env:"GUM_WRITE_WIDTH"`
	Height      int    `help:"Text area height" default:"8" env:"GUM_WRITE_HEIGHT"`
	Header      string `help:"Header value" default:"" env:"GUM_WRITE_HEADER"`
	Placeholder string `help:"Placeholder value" default:"Write something..." env:"GUM_WRITE_PLACEHOLDER"`
	// Prompt          string        `help:"Prompt to display" default:"┃ " env:"GUM_WRITE_PROMPT"`
	// ShowCursorLine  bool          `help:"Show cursor line" default:"false" env:"GUM_WRITE_SHOW_CURSOR_LINE"`
	// ShowLineNumbers bool          `help:"Show line numbers" default:"false" env:"GUM_WRITE_SHOW_LINE_NUMBERS"`
	Value string `help:"Initial value (can be passed via stdin)" default:"" env:"GUM_WRITE_VALUE"`

	// BaseStyle             style.Styles `embed:"" prefix:"base." envprefix:"GUM_WRITE_BASE_"`
	// CursorLineNumberStyle style.Styles `embed:"" prefix:"cursor-line-number." set:"defaultForeground=7" envprefix:"GUM_WRITE_CURSOR_LINE_NUMBER_"`
	// CursorLineStyle       style.Styles `embed:"" prefix:"cursor-line." envprefix:"GUM_WRITE_CURSOR_LINE_"`
	// CursorStyle           style.Styles `embed:"" prefix:"cursor." set:"defaultForeground=230" envprefix:"GUM_WRITE_CURSOR_"`
	// EndOfBufferStyle      style.Styles `embed:"" prefix:"end-of-buffer." set:"defaultForeground=0" envprefix:"GUM_WRITE_END_OF_BUFFER_"`
	// LineNumberStyle       style.Styles `embed:"" prefix:"line-number." set:"defaultForeground=7" envprefix:"GUM_WRITE_LINE_NUMBER_"`
	HeaderStyle style.Styles `embed:"" prefix:"header." set:"defaultForeground=231" envprefix:"GUM_WRITE_HEADER_"`

	Result string
}

Options are the customization options for the textarea.

func (*Options) Run

func (o *Options) Run() error

Run provides a shell script interface for the text area bubble. https://github.com/charmbracelet/bubbles/textarea

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL