git-stk 0.7.0

Git-native stacked branch workflow helper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::Result;

use crate::commands::Run;

/// Print shell completions.
#[derive(Debug, clap::Args)]
pub struct Completions {
    /// Shell to print completions for.
    #[arg(value_enum)]
    shell: clap_complete::Shell,
}

impl Run for Completions {
    fn run(self) -> Result<()> {
        crate::completions::print(self.shell)
    }
}