Documentation ¶
Index ¶
- func Add(opts *Options, args *AddArgs) error
- func ConfigHookCommandCompletions(opts *Options, hookName string) []string
- func ConfigHookCompletions(opts *Options) []string
- func Dump(opts *Options, args DumpArgs)
- func Install(opts *Options, force bool) error
- func Run(opts *Options, args RunArgs, hookName string, gitArgs []string) error
- func Uninstall(opts *Options, args *UninstallArgs) error
- type AddArgs
- type DumpArgs
- type Lefthook
- type Options
- type RunArgs
- type UninstallArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigHookCommandCompletions ¶ added in v1.5.6
func ConfigHookCompletions ¶ added in v1.5.6
func Uninstall ¶
func Uninstall(opts *Options, args *UninstallArgs) error
Types ¶
type Lefthook ¶
type Lefthook struct { // Since we need to support deprecated global options Force and Aggressive // we need to store these fields. After their removal we need just to copy fs. *Options // contains filtered or unexported fields }
func (*Lefthook) Uninstall ¶
func (l *Lefthook) Uninstall(args *UninstallArgs) error
type UninstallArgs ¶
type UninstallArgs struct {
Force, RemoveConfig bool
}
Click to show internal directories.
Click to hide internal directories.