Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

caarlos0
Copy link
Member

@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>
@caarlos0 caarlos0 self-assigned this Dec 13, 2024
@caarlos0 caarlos0 merged commit 0e501ea into main Dec 13, 2024
14 checks passed
@caarlos0 caarlos0 deleted the filter-return branch December 13, 2024 20:00
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
1 participant