Skip to content

feat(filter): --select-if-one returns if single match#778

Merged
caarlos0 merged 1 commit intomainfrom
filter-return
Dec 13, 2024
Merged

feat(filter): --select-if-one returns if single match#778
caarlos0 merged 1 commit intomainfrom
filter-return

Conversation

@caarlos0
Copy link
Copy Markdown
Contributor

@caarlos0 caarlos0 commented Dec 13, 2024

  • currently, --select-if-one returns directly only if there is one option
  • this pr changes it so it also returns if a --value is provided, and matching only gives 1 option, which is likely the expected behavior of that flag
  • also made an internal tty package to handle printing results better

closes #311

closes #311

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let gum filter autoselect a value if only one matches the --value parameter

2 participants