Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Add = &cli.Command{ Name: "add", Usage: "adds a new git hook", Subcommands: []*cli.Command{ { Name: "gitleaks", Usage: "pre-commit hook to run gitleaks detect", Action: func(c *cli.Context) error { return addGitLeaks() }, }, }, }
View Source
var Config = &cli.Command{ Name: "config", Usage: "Configure git-hooks", Action: func(c *cli.Context) error { return configureGitHooks() }, }
View Source
var Hooks = &cli.Command{ Name: "hook", Usage: "", Action: func(c *cli.Context) error { if c.NArg() == 0 { return cli.ShowAppHelp(c) } hookName := c.Args().First() return executeHook(hookName) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.