runner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOk status = iota
	StatusErr
)

Variables

This section is empty.

Functions

func Execute

func Execute(root string, args []string) (*bytes.Buffer, error)

Types

type Result

type Result struct {
	Name   string
	Status status
}

type Runner

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

func NewRunner

func NewRunner(
	fs afero.Fs,
	repo *git.Repository,
	hook *config.Hook,
	args []string,
	resultChan chan Result,
) *Runner

func (*Runner) RunAll

func (r *Runner) RunAll(scriptDirs []string)

Jump to

Keyboard shortcuts

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