Added a new install-precommit subcommand that installs a git pre-commit hook, prompting or accepting --global/--repo flags to control scope and configuring the hook to run kingfisher --quiet --only-valid --no-update-check

This commit is contained in:
Mick Grove 2025-08-22 17:33:03 -07:00
commit 7f3846c8e7
2 changed files with 3 additions and 3 deletions

View file

@ -214,9 +214,9 @@ fn hook_content() -> String {
fn hook_call_line() -> String {
if cfg!(windows) {
"kingfisher --quiet --only-valid --no-update-check %*".to_string()
"kingfisher scan --quiet --only-valid --no-update-check %*".to_string()
} else {
"kingfisher --quiet --only-valid --no-update-check \"$@\"".to_string()
"kingfisher scan --quiet --only-valid --no-update-check \"$@\"".to_string()
}
}