mirror of
https://github.com/charmbracelet/gum
synced 2024-05-17 21:56:42 +02:00
16 lines
755 B
Go
16 lines
755 B
Go
package table
|
|
|
|
import "github.com/charmbracelet/gum/style"
|
|
|
|
// Options is the customization options for the table command.
|
|
type Options struct {
|
|
Separator string `short:"s" help:"Row separator" default:","`
|
|
Columns []string `short:"c" help:"Column names"`
|
|
Widths []int `short:"w" help:"Column widths"`
|
|
Height int `help:"Table height" default:"10"`
|
|
CellStyle style.Styles `embed:"" prefix:"cell." envprefix:"GUM_TABLE_CELL"`
|
|
HeaderStyle style.Styles `embed:"" prefix:"header." envprefix:"GUM_TABLE_HEADER"`
|
|
SelectedStyle style.Styles `embed:"" prefix:"selected." set:"defaultForeground=212" envprefix:"GUM_TABLE_SELECTED"`
|
|
File string `short:"f" help:"file path" default:""`
|
|
}
|