Skip to main content

git_stk/commands/
completions.rs

1use anyhow::Result;
2
3use crate::commands::Run;
4
5/// Print shell completions.
6#[derive(Debug, clap::Args)]
7pub struct Completions {
8    /// Shell to print completions for.
9    #[arg(value_enum)]
10    shell: clap_complete::Shell,
11}
12
13impl Run for Completions {
14    fn run(self) -> Result<()> {
15        crate::completions::print(self.shell)
16    }
17}