hk 1.45.0

A tool for managing git hooks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Result;
use crate::hook_options::HookOptions;

#[derive(clap::Args)]
pub struct PostCommit {
    #[clap(flatten)]
    hook: HookOptions,
}

impl PostCommit {
    pub async fn run(mut self) -> Result<()> {
        self.hook.tctx.insert("hook_args", "");
        self.hook.run("post-commit").await
    }
}