run

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOk status = iota
	StatusErr
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Repo            *git.Repository
	Hook            *config.Hook
	HookName        string
	GitArgs         []string
	ResultChan      chan Result
	SkipSettings    log.SkipSettings
	DisableTTY      bool
	AllFiles        bool
	Force           bool
	Files           []string
	RunOnlyCommands []string
}

type Result

type Result struct {
	Name   string
	Text   string
	Status status
}

type Runner

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

Runner responds for actual execution and handling the results.

func NewRunner

func NewRunner(opts Options) *Runner

func (*Runner) RunAll

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

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