pass hook configuration through CLI arguments

This commit is contained in:
Jabberwocky238
2026-07-30 01:15:49 -04:00
parent 1e5b0225f5
commit 8d299013f9
4 changed files with 54 additions and 36 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ type Config struct {
// The hook name is its first argument; Git's original args, stdin and
// environment are preserved. Empty disables hook effects.
HookScript string
DBUri string
// HookArgs are fixed CLI arguments placed before the hook type and repo.
HookArgs []string
DBUri string
preparedDbUri string
prepared atomic.Bool