pub fn select_one(
prompt: &str,
options: &[String],
is_json: bool,
) -> Result<usize, SelectError>Expand description
Prompt the user to select one option from a list using dialoguer.
is_json: returnErr(SelectError::JsonModeNeedsExplicit).- Non-TTY: auto-select first option with stderr warning.
- Interactive: use
dialoguer::Selecton stderr.