pub fn generate_completion<W: Write>(shell: Shell, writer: &mut W)Expand description
Generates shell completion script and writes it to the provided writer.
:param shell: Target shell (e.g., Fish, Bash, Zsh).
:param writer: Destination stream implementing Write.
ยงExample
use clap_complete::Shell;
use git_claw::workflow::completion::generate_completion;
let mut buffer = Vec::new();
generate_completion(Shell::Fish, &mut buffer);
let output = String::from_utf8(buffer).expect("valid utf-8");
assert!(output.contains("complete -c git-claw"));