Harness the power of signify(1) to sign arbitrary git objects
1//! Generate shell completions.
2
3use std::io;
4
5use anyhow::Result;
6use clap::CommandFactory;
7use clap_complete::aot::{generate, Shell};
8
9use super::Args;
10
11/// Execute the `shell-completions` command.
12pub fn command(shell: Shell) -> Result<()> {
13 generate(
14 shell,
15 &mut Args::command(),
16 "git-signify",
17 &mut io::stdout(),
18 );
19 Ok(())
20}