MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / choose_option

Function choose_option

crates/cargo-lambda-interactive/src/lib.rs:18–23  ·  view source on GitHub ↗
(message: &str, options: Vec<T>)

Source from the content-addressed store, hash-verified

16}
17
18pub fn choose_option<T: Display>(message: &str, options: Vec<T>) -> InquireResult<T> {
19 inquire::Select::new(message, options)
20 .with_vim_mode(true)
21 .with_help_message("↑↓ to move, press Ctrl+C to abort and exit")
22 .prompt()
23}
24
25pub fn is_user_cancellation_error(err: &InquireError) -> bool {
26 matches!(

Callers 1

install_zig_interactiveFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected