Skip to main content

run_completion_workflow

Function run_completion_workflow 

Source
pub fn run_completion_workflow(shell: Shell) -> Result<(), WorkflowError>
Expand description

Runs the shell completion workflow, writing completion script to stdout.

:param shell: Target shell for which to generate completions. :return: Result indicating success or error.

ยงExample

use clap_complete::Shell;
use git_claw::workflow::completion::run_completion_workflow;

let result = run_completion_workflow(Shell::Bash);
assert!(result.is_ok());