run

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	ctx context.Context,
	hook *config.Hook,
	repo *git.Repository,
	opts Options,
) ([]result.Result, error)

Run executes the hook.

Types

type FailOnChangesError added in v2.1.2

type FailOnChangesError = controller.FailOnChangesError

FailOnChangesError is a special error that fails the hook if any project file was changed.

Exported here to be handled separately on the caller side.

type Options

type Options = controller.Options

Options contain hook arguments and special execution settings.

Directories

Path Synopsis
Package controller handles ordering, filtering, substitutions while running jobs for a given hook.
Package controller handles ordering, filtering, substitutions while running jobs for a given hook.

Jump to

Keyboard shortcuts

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