run

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCachedReader

func NewCachedReader(in io.Reader) *cachedReader

Types

type Options

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

type Run

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

Run responds for actual execution and handling the results.

func New

func New(opts Options) *Run

func (*Run) RunAll

func (r *Run) RunAll(ctx context.Context) ([]result.Result, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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