Skip to content

Allow CLI::UI.ask to work without a question parameter #594

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RRethy
Copy link

@RRethy RRethy commented May 16, 2025

Summary

  • Make the question parameter optional in CLI::UI.ask and CLI::UI::Prompt.ask methods
  • This enhances flexibility by allowing simpler prompts when a question isn't needed
  • Add a test to validate the new functionality

I want to be able to use cli-ui to repeatedly query the user for input. Since there isn't really a question, I'm looking to avoid having the question and the ? used on the preceding line each time.

@RRethy RRethy requested a review from a team as a code owner May 16, 2025 01:01
This change makes the `question` parameter optional in `CLI::UI.ask` and `CLI::UI::Prompt.ask` methods, allowing for simpler prompts when the question isn't needed.
@RRethy RRethy force-pushed the allow-no-question-for-ask branch from d4ffea6 to 12b43b2 Compare May 16, 2025 01:01
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.

1 participant