interactive_select_script

Function interactive_select_script 

Source
pub fn interactive_select_script(
    scripts: &Scripts,
    quiet: bool,
) -> Result<String, CargoScriptError>
Expand description

Interactive script selection using fuzzy finder.

This function displays an interactive fuzzy selector for choosing a script to run.

§Arguments

  • scripts - A reference to the collection of scripts.
  • quiet - If true, suppress extra output.

§Returns

The selected script name, or an error if selection was cancelled or failed.

§Errors

Returns an error if no scripts are available or if the selection was cancelled.