Skip to main content

confirm_transient_spec

Function confirm_transient_spec 

Source
pub fn confirm_transient_spec(
    prompt: &str,
    yes_command_id: CommandId,
) -> TransientSpec
Expand description

Build a simple y/n confirmation transient spec. prompt is the title shown at the top; yes_command_id is the action fired when the user presses y.