8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
In case of an unexpected events, I would love to display a warning to the user, which simply needs to be "confirmed" for the programm to move on.
The workaround I use is a selection with "OK" as single option, but this is a bit hacky.
I kindly request to add alert as a new interaction option to dialoguer. One can use the pull request, but I probably messed the return types up ...
obsoletes #287
Sorry, something went wrong.
Adding alert as new message type
1e7b30e
Why can't confirm be used?
I tried, but it appeared to me that all ways to use Confirm present the user with some kind of choice. There is always the y/n rendered and I am looking for an alert which can only be acknowleged.
y/n
This can be done with Confirm and setting a default, but having the 'y/n' suggests that there is a choice if there actually is none.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding a new prompt, can you please modify the confirm prompt with an extra option?
confirm
Sure. But I wonder if that would introduce a lot of "if-clauses" into the code making it more complex than needed. Right now I think a new prompt has these advantages:
report
default
show_default
wait_for_newline
interact_on
theme/mod.rs::format_confirm_prompt
theme/colorful.rs::format_confirm_prompt
Probably it is just a mattter of coding style, what do you think?
pksunkara pksunkara requested changes
Successfully merging this pull request may close these issues.