Skip to main content

run_with_completion

Function run_with_completion 

Source
pub fn run_with_completion(
    cmd: &dyn CommandLike,
    prog_name: &str,
    complete_var: &str,
)
Expand description

Run a command/group with optional shell-completion handling.

If completion is requested via complete_var, completion output is handled and this function returns immediately. Otherwise, it behaves like run.