Add a little Hooked header.

This commit is contained in:
Bauke 2022-10-31 11:36:55 +01:00
parent 3f4c8f010f
commit 7338b5667a
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,11 @@ pub fn hooked_run(config: Config, hook_type: String) -> Result<()> {
let error_style = Style::new().bold().red(); let error_style = Style::new().bold().red();
if hook_type == "pre-commit" { if hook_type == "pre-commit" {
println!(
"Hooked: Running {} pre-commit hooks.",
config.pre_commit.len()
);
for hook in config.pre_commit { for hook in config.pre_commit {
let hook_name = hook.name.unwrap_or_else(|| "Unnamed Hook".to_string()); let hook_name = hook.name.unwrap_or_else(|| "Unnamed Hook".to_string());