mirror of
https://github.com/charmbracelet/gum
synced 2024-05-03 06:53:22 +02:00
995bd04e38
This commit documents `gum table`, `gum file`, and `gum pager` with demonstration GIFs and sample scripts.
14 lines
773 B
Go
14 lines
773 B
Go
package pager
|
|
|
|
import "github.com/charmbracelet/gum/style"
|
|
|
|
// Options are the options for the pager.
|
|
type Options struct {
|
|
//nolint:staticcheck
|
|
Style style.Styles `embed:"" help:"Style the pager" set:"defaultBorder=rounded" set:"defaultPadding=0 1" set:"defaultBorderForeground=212" envprefix:"GUM_PAGER_"`
|
|
HelpStyle style.Styles `embed:"" prefix:"help." help:"Style the help text" set:"defaultForeground=241" envprefix:"GUM_PAGER_HELP_"`
|
|
Content string `arg:"" optional:"" help:"Display content to scroll"`
|
|
ShowLineNumbers bool `help:"Show line numbers" default:"true"`
|
|
LineNumberStyle style.Styles `embed:"" prefix:"line-number." help:"Style the line numbers" set:"defaultForeground=237" envprefix:"GUM_PAGER_LINE_NUMBER_"`
|
|
}
|