runner

package
v1.6.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.6.9

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

type Result

type Result struct {
	Name string
	// contains filtered or unexported fields
}

Result contains name of a command/script and an optional fail string.

func (Result) Failure added in v1.6.9

func (r Result) Failure() bool

func (Result) Success added in v1.6.9

func (r Result) Success() bool

func (Result) Text added in v1.1.0

func (r Result) Text() string

type Runner

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

Runner responds for actual execution and handling the results.

func New added in v1.6.9

func New(opts Options) *Runner

func (*Runner) RunAll

func (r *Runner) RunAll(ctx context.Context, sourceDirs []string) []Result

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