Documentation
¶
Index ¶
- Constants
- type AddArgs
- type DumpArgs
- type InstallArgs
- type Lefthook
- func (l *Lefthook) Add(_ctx context.Context, args AddArgs) error
- func (l *Lefthook) CheckInstall(_ctx context.Context) error
- func (l *Lefthook) Dump(_ctx context.Context, args DumpArgs) error
- func (l *Lefthook) Install(ctx context.Context, args InstallArgs, hooks []string) error
- func (l *Lefthook) LoadConfig() (*config.Config, error)
- func (l *Lefthook) Run(ctx context.Context, args RunArgs) error
- func (l *Lefthook) Uninstall(_ctx context.Context, args UninstallArgs) error
- func (l *Lefthook) Validate(_ctx context.Context, args ValidateArgs) error
- type RunArgs
- type UninstallArgs
- type ValidateArgs
Constants ¶
View Source
const (
EnvVerbose = "LEFTHOOK_VERBOSE" // keep all output
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallArgs ¶
type InstallArgs struct {
Force bool
}
type Lefthook ¶
type Lefthook struct {
// contains filtered or unexported fields
}
func NewLefthook ¶
NewLefthook returns an instance of Lefthook.
type UninstallArgs ¶
type UninstallArgs struct {
Force, RemoveConfig bool
}
type ValidateArgs ¶
type ValidateArgs struct {
SchemaPath string
}
Click to show internal directories.
Click to hide internal directories.