From 7338b5667aa727991418d93bee7376a2e7b10386 Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 31 Oct 2022 11:36:55 +0100 Subject: [PATCH] Add a little Hooked header. --- hooked-cli/source/cli/run.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hooked-cli/source/cli/run.rs b/hooked-cli/source/cli/run.rs index a6fa0c2..5291e0c 100644 --- a/hooked-cli/source/cli/run.rs +++ b/hooked-cli/source/cli/run.rs @@ -13,6 +13,11 @@ pub fn hooked_run(config: Config, hook_type: String) -> Result<()> { let error_style = Style::new().bold().red(); if hook_type == "pre-commit" { + println!( + "Hooked: Running {} pre-commit hooks.", + config.pre_commit.len() + ); + for hook in config.pre_commit { let hook_name = hook.name.unwrap_or_else(|| "Unnamed Hook".to_string());