run

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailOnChanges = errors.New("files were modified by a hook, and fail_on_changes is enabled")

Functions

This section is empty.

Types

type Controller added in v1.13.0

type Controller struct {
	Options
	// contains filtered or unexported fields
}

Controller responds for actual execution and handling the results.

func NewController added in v1.13.0

func NewController(opts Options) *Controller

func (*Controller) RunAll added in v1.13.0

func (c *Controller) RunAll(ctx context.Context) ([]result.Result, error)

RunAll runs scripts and commands. LFS hook is executed at first if needed.

type Options

type Options struct {
	Repo          *git.Repository
	Hook          *config.Hook
	HookName      string
	GitArgs       []string
	DisableTTY    bool
	SkipLFS       bool
	Force         bool
	Exclude       []string
	Files         []string
	RunOnlyJobs   []string
	RunOnlyTags   []string
	SourceDirs    []string
	Templates     map[string]string
	FailOnChanges bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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