Versions in this module Expand all Collapse all v0 v0.6.1 Jun 5, 2026 Changes in this version + const ReasonHookMissing + const ReasonInstallFailed + const ReasonNoConfig + const ReasonNotInRepo + const ReasonRunFailed + const ReasonToolMissing type CommandRunner + RunStdout func(dir, name string, args ...string) (string, error) + type InstallError struct + func (e *InstallError) CategoryNames() []string + func (e *InstallError) Error() string type Result + InstallFailureCategories []string + Reason string v0.6.0 Jun 4, 2026 Changes in this version + func ConfigFile(root string) (string, bool) + func EnsureTool(r CommandRunner) (string, error) + func HookInstalled(r CommandRunner, root string) bool + func InstallHook(r CommandRunner, root string) (string, error) + func ToolVersion(r CommandRunner) (string, bool) + type CommandRunner interface + Look func(name string) bool + Run func(dir, name string, args ...string) (string, error) + func NewExecRunner() CommandRunner + type Options struct + AllowInstall bool + Root string + Run bool + type Result struct + ActionsTaken []string + ConfigFound bool + HookInstalled bool + OK bool + RunOutput string + RunResult string + ToolInstalled bool + ToolVersion string + func Check(r CommandRunner, opts Options) (Result, error)