console-rs / dialoguer

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

Feature: Third option for confirm prompt #307

Open emmalexandria opened 8 months ago

emmalexandria commented 8 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 8 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 4 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