hook

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAction = errors.New("invalid hook action")

Functions

This section is empty.

Types

type Action

type Action int
const (
	ActionUnset Action = iota
	ActionInstall
	ActionUninstall
	ActionCommit
)

type Hook

type Hook struct {
	Action Action
}

func New

func New(opts Options) Hook

func (*Hook) Do

func (h *Hook) Do() error

type Options

type Options struct {
	Install   bool
	Uninstall bool
	Commit    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL