tui.Run returns the picked item, not just its name (HOMECFG-20) #20

Merged
nelsong6 merged 1 commit from homecfg-20-pick-item into main 2026-10-30 11:11:02 -07:00
nelsong6 commented 2026-10-30 11:05:38 -07:00 (Migrated from github.com)

tui.Run now returns a Pick: its kind (select, input, command, cancel), the picked item itself, and the pick as text (Output, what it returned before). fzt-automate looked the returned name up again, so two items sharing a name could run the wrong one; frontends now act on Pick.Item. The fzt CLI prints Output as before; fzt-automate and fzt-picker adapt in their own PRs.

OpenProject: https://openproject.home.romaine.life/work_packages/2062 (HOMECFG-20)

`tui.Run` now returns a `Pick`: its kind (`select`, `input`, `command`, `cancel`), the picked item itself, and the pick as text (`Output`, what it returned before). fzt-automate looked the returned name up again, so two items sharing a name could run the wrong one; frontends now act on `Pick.Item`. The `fzt` CLI prints `Output` as before; fzt-automate and fzt-picker adapt in their own PRs. OpenProject: https://openproject.home.romaine.life/work_packages/2062 (HOMECFG-20)
Sign in to join this conversation.
No description provided.