Skip to main content

git_workspace/commands/
completion.rs

1use std::io;
2
3use clap::Command;
4use clap_complete::{generate, Shell};
5
6/// Generate shell completions
7pub fn completion(shell: Shell, app: &mut Command) -> anyhow::Result<()> {
8    generate(shell, app, app.get_name().to_string(), &mut io::stdout());
9    Ok(())
10}