charmbracelet / gum

A tool for glamorous shell scripts 🎀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gum choose v0.14.0: timeout no longer working

daviehh opened this issue · comments

Describe the bug
gum choose --selected="foo" --timeout=3s "a" "b" "foo" "d"
timeout no longer working

To Reproduce
Steps to reproduce the behavior:

  1. gum choose --selected="foo" --timeout=3s "a" "b" "foo" "d"
  2. No progress

Expected behavior
timeout after 3s

Desktop (please complete the following information):

  • OS: macos 14.4.1

Incidentally

Timeout time.Duration `help:"Timeout until choose returns selected element" default:"0" env:"GUM_CCHOOSE_TIMEOUT"` // including timeout command options [Timeout,...]

typo for GUM_CCHOOSE_TIMEOUT?

I think this change broke the timeout: #522
It seems like the timeout functionality was not implemented when using the new framework @maaslalani