console-rs / dialoguer

Rust utility library for nice command line prompts and similar things
MIT License
1.31k stars 143 forks source link

Feature: Third option for confirm prompt #307

Open emmalexandria opened 6 months ago

emmalexandria commented 6 months ago

It's very common to have a confirm prompt with three options, being Yes, No, and All. All being an option to skip further confirmation prompts of the same kind (e.g when doing something to large number of files). Something similar would be very useful to have in Dialoguer, if it's reasonably possible within the codebase.

agingorange commented 5 months ago

Yes, or for a menu system responding to one letter where you choose an option, without having to press Enter to move through the menu tree.

VorpalBlade commented 2 months ago

I was looking for a "Yes/No/show Diff/interactive Shell" personally. So a MultiConfirm or SingleLineMenu or some such would be much appreciated