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

Add --select-if-one flag to choose/filter. #398

Merged
merged 3 commits into from Nov 28, 2023

Conversation

kennyp
Copy link
Contributor

@kennyp kennyp commented Jul 17, 2023

Fixes #396

Changes

  • Add --select-if-one to choose, returns the only option if only one option is given
  • Add --select-if-one to filter, returns the only option if only one option is given

@kennyp
Copy link
Contributor Author

kennyp commented Nov 1, 2023

@maaslalani and @bashbunni what's y'all's preferred way of working? Do y'all like PRs like this or would you prefer discussion in discord or something like that?

I love the stuff y'all are putting out and I would love to contribute more, so I just want to make sure my approach matches what y'all are looking for.

@maaslalani maaslalani merged commit fb6849c into charmbracelet:main Nov 28, 2023
6 checks passed
@maaslalani
Copy link
Member

Thanks so much for the PR @kennyp! This looks great, thank you for the contribution ❤️

@vt-alt
Copy link

vt-alt commented Nov 28, 2023

Thank you!

@kennyp kennyp deleted the kp-select-if-one branch November 28, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gum choose: Option to not ask when there is no choice
3 participants