Skip to content

Commit d722a2f

Browse files
authored
fix: height 0 by default (#640)
1 parent 9db5c7f commit d722a2f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

choose/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Options struct {
1212
Limit int `help:"Maximum number of options to pick" default:"1" group:"Selection"`
1313
NoLimit bool `help:"Pick unlimited number of options (ignores limit)" group:"Selection"`
1414
Ordered bool `help:"Maintain the order of the selected options" env:"GUM_CHOOSE_ORDERED"`
15-
Height int `help:"Height of the list" default:"10" env:"GUM_CHOOSE_HEIGHT"`
15+
Height int `help:"Height of the list" default:"0" env:"GUM_CHOOSE_HEIGHT"`
1616
Cursor string `help:"Prefix to show on item that corresponds to the cursor position" default:"> " env:"GUM_CHOOSE_CURSOR"`
1717
ShowHelp bool `help:"Show help keybinds" default:"true" negatable:"true" env:"GUM_CHOOSE_SHOW_HELP"`
1818
Header string `help:"Header value" default:"Choose:" env:"GUM_CHOOSE_HEADER"`

file/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Options struct {
1717
Directory bool `help:"Allow directories selection" default:"false" env:"GUM_FILE_DIRECTORY"`
1818
ShowHelp bool `help:"Show help key binds" negatable:"" default:"true" env:"GUM_FILE_SHOW_HELP"`
1919

20-
Height int `help:"Maximum number of files to display" default:"10" env:"GUM_FILE_HEIGHT"`
20+
Height int `help:"Maximum number of files to display" default:"0" env:"GUM_FILE_HEIGHT"`
2121
CursorStyle style.Styles `embed:"" prefix:"cursor." help:"The cursor style" set:"defaultForeground=212" envprefix:"GUM_FILE_CURSOR_"`
2222
SymlinkStyle style.Styles `embed:"" prefix:"symlink." help:"The style to use for symlinks" set:"defaultForeground=36" envprefix:"GUM_FILE_SYMLINK_"`
2323
DirectoryStyle style.Styles `embed:"" prefix:"directory." help:"The style to use for directories" set:"defaultForeground=99" envprefix:"GUM_FILE_DIRECTORY_"`

table/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Options struct {
77
Separator string `short:"s" help:"Row separator" default:","`
88
Columns []string `short:"c" help:"Column names"`
99
Widths []int `short:"w" help:"Column widths"`
10-
Height int `help:"Table height" default:"10"`
10+
Height int `help:"Table height" default:"0"`
1111
Print bool `short:"p" help:"static print" default:"false"`
1212
File string `short:"f" help:"file path" default:""`
1313
Border string `short:"b" help:"border style" default:"rounded" enum:"rounded,thick,normal,hidden,double,none"`

0 commit comments

Comments
 (0)