Documentation
¶
Overview ¶
Package lifecyclehooks runs trusted user-configured commands after WB changes a repository checkout. It is intentionally separate from package hooks, which manages Git's own hook shims and repository policy.
Index ¶
Constants ¶
View Source
const ( ConfigVersion = 1 EventCheckoutUpdated = "checkout-updated" )
Variables ¶
This section is empty.
Functions ¶
func RepositoryIdentity ¶
Types ¶
type Config ¶
type Dispatcher ¶
type Dispatcher struct {
ConfigPath string
ReceiptPath string
Now func() time.Time
Run func(context.Context, Invocation) error
EvalSymlinks func(string) (string, error)
}
func DefaultDispatcher ¶
func DefaultDispatcher() Dispatcher
type Invocation ¶
type Match ¶
type Match struct {
Repositories RepositoryMatch `yaml:"repositories"`
}
type RepositoryMatch ¶
Click to show internal directories.
Click to hide internal directories.