Documentation
¶
Index ¶
- func Add(opts *Options, args *AddArgs) error
- func Dump(opts *Options)
- func Install(opts *Options, args *InstallArgs) error
- func Run(opts *Options, args RunArgs, hookName string, gitArgs []string) error
- func Uninstall(opts *Options, args *UninstallArgs) error
- type AddArgs
- type InstallArgs
- type Lefthook
- type Options
- type RunArgs
- type UninstallArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(opts *Options, args *InstallArgs) error
Install installs the hooks from config file to the .git/hooks.
func Uninstall ¶
func Uninstall(opts *Options, args *UninstallArgs) error
Types ¶
type InstallArgs ¶
type InstallArgs struct {
Force, Aggressive bool
}
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) Install ¶
func (l *Lefthook) Install(args *InstallArgs) error
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.