package
Version:
v1.14.1-alpha
Opens a new window with list of versions in this module.
Published: May 18, 2026
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var ErrCreatingDelegate = errors.New("failed to create delegate hook")
View Source
var ErrCreatingHook = errors.New("failed to create hook")
View Source
var ErrCreatingHookDir = errors.New("failed to create hooks directory")
View Source
var ErrNoGitRepo = errors.New("not a git repo")
func Command ¶
The hook command is nested like so:
knot hook --[flags] [hook]
func Config(opts ...setupOpt) config
func Setup(config config) error
setup hooks for all users
directory structure is typically like so:
did:plc:repo1
did:plc:repo2
did:web:repo1
setup hook in /scanpath/did:plc:repo
func WithInternalApi(api string) setupOpt
func WithScanPath(scanPath string) setupOpt
type HookResponse struct {
Messages []string `json:"messages"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.