summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com>2024-07-25 15:50:22 -0400
committerGitHub <noreply@github.com>2024-07-25 15:50:22 -0400
commitd722a2f1b811581125911a7e1a61b4dc8e9a1ec7 (patch)
tree21df66380ecc2e968fe8ba064fee195e6cab9067
parent9db5c7fbbabad605e763925eeb9e24ec836616db (diff)
fix: height 0 by default (#640)
-rw-r--r--choose/options.go2
-rw-r--r--file/options.go2
-rw-r--r--table/options.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/choose/options.go b/choose/options.go
index c9f07bd..e9c393c 100644
--- a/choose/options.go
+++ b/choose/options.go
@@ -12,7 +12,7 @@ type Options struct {
Limit int `help:"Maximum number of options to pick" default:"1" group:"Selection"`
NoLimit bool `help:"Pick unlimited number of options (ignores limit)" group:"Selection"`
Ordered bool `help:"Maintain the order of the selected options" env:"GUM_CHOOSE_ORDERED"`
- Height int `help:"Height of the list" default:"10" env:"GUM_CHOOSE_HEIGHT"`
+ Height int `help:"Height of the list" default:"0" env:"GUM_CHOOSE_HEIGHT"`
Cursor string `help:"Prefix to show on item that corresponds to the cursor position" default:"> " env:"GUM_CHOOSE_CURSOR"`
ShowHelp bool `help:"Show help keybinds" default:"true" negatable:"true" env:"GUM_CHOOSE_SHOW_HELP"`
Header string `help:"Header value" default:"Choose:" env:"GUM_CHOOSE_HEADER"`
diff --git a/file/options.go b/file/options.go
index 4b8e88d..5d4593d 100644
--- a/file/options.go
+++ b/file/options.go
@@ -17,7 +17,7 @@ type Options struct {
Directory bool `help:"Allow directories selection" default:"false" env:"GUM_FILE_DIRECTORY"`
ShowHelp bool `help:"Show help key binds" negatable:"" default:"true" env:"GUM_FILE_SHOW_HELP"`
- Height int `help:"Maximum number of files to display" default:"10" env:"GUM_FILE_HEIGHT"`
+ Height int `help:"Maximum number of files to display" default:"0" env:"GUM_FILE_HEIGHT"`
CursorStyle style.Styles `embed:"" prefix:"cursor." help:"The cursor style" set:"defaultForeground=212" envprefix:"GUM_FILE_CURSOR_"`
SymlinkStyle style.Styles `embed:"" prefix:"symlink." help:"The style to use for symlinks" set:"defaultForeground=36" envprefix:"GUM_FILE_SYMLINK_"`
DirectoryStyle style.Styles `embed:"" prefix:"directory." help:"The style to use for directories" set:"defaultForeground=99" envprefix:"GUM_FILE_DIRECTORY_"`
diff --git a/table/options.go b/table/options.go
index b70578c..a7a3f29 100644
--- a/table/options.go
+++ b/table/options.go
@@ -7,7 +7,7 @@ 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"`
+ Height int `help:"Table height" default:"0"`
Print bool `short:"p" help:"static print" default:"false"`
File string `short:"f" help:"file path" default:""`
Border string `short:"b" help:"border style" default:"rounded" enum:"rounded,thick,normal,hidden,double,none"`