Versions in this module Expand all Collapse all v0 v0.2.0 Jun 7, 2026 Changes in this version + func FindGitDir() (string, error) + func GeneratePreCommitScript(opts *PreCommitOptions) (string, error) + func InstallPreCommit(opts *InstallOptions) error + func UninstallPreCommit() error + type InstallOptions struct + Force bool + GitDir string + func DefaultInstallOptions() *InstallOptions + type PreCommitOptions struct + FailOnWarnings bool + Level string + Profile string + func DefaultPreCommitOptions() *PreCommitOptions v0.1.0 Jun 7, 2026 Changes in this version + func DefaultPaths() map[string]string + func EventSupport() map[string][]core.Event + func SupportedFormats() []string + type Config struct + AutoLint bool + AutoLintPatterns []string + InjectContext bool + Profile string + func DefaultConfig() *Config + func (c *Config) Generate() *hooks.Config + func (c *Config) MarshalFormat(format string) ([]byte, error) + func (c *Config) WriteToFile(path, format string) error