Documentation
¶
Index ¶
- Constants
- func ShellCompleteFlags(cmd *cli.Command)
- func ShellCompleteHookNames()
- 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 ¶
func ShellCompleteFlags ¶ added in v2.0.11
func ShellCompleteHookNames ¶ added in v2.0.11
func ShellCompleteHookNames()
Types ¶
type InstallArgs ¶
type Lefthook ¶
type Lefthook struct {
// contains filtered or unexported fields
}
func NewLefthook ¶
NewLefthook returns an instance of Lefthook.
type RunArgs ¶
type RunArgs struct {
NoTTY bool
AllFiles bool
FilesFromStdin bool
Force bool
NoAutoInstall bool
NoStageFixed bool
SkipLFS bool
Verbose bool
FailOnChanges *bool
FailOnChangesDiff *bool
Hook string
Exclude []string
Files []string
RunOnlyCommands []string
RunOnlyJobs []string
RunOnlyTags []string
GitArgs []string
}
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.