Help us shape the future of Go! Take the 2026 Go Developer Survey

runners

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package runners provides an interface to execute commands.

Index

Constants

View Source
const (
	// LogsEnabledDefault defines logs enabling.
	LogsEnabledDefault = true

	// Hidden marks a hidden output.
	Hidden = "HIDDEN"
)

Variables

This section is empty.

Functions

func NewRunnerError

func NewRunnerError(command string, stderr string, e error) error

NewRunnerError creates a new RunnerError instance.

Types

type LocalRunner

type LocalRunner struct {
	UseSudo bool
}

Local.

func NewLocalRunner

func NewLocalRunner(useSudo bool) *LocalRunner

NewLocalRunner creates a new LocalRunner instance.

func (*LocalRunner) Run

func (r *LocalRunner) Run(command string, options ...bool) (string, error)

type Runner

type Runner interface {
	Run(string, ...bool) (string, error)
}

type RunnerError

type RunnerError struct {
	Msg        string
	ExitStatus int
	Stderr     string
}

func (RunnerError) Error

func (e RunnerError) Error() string

Jump to

Keyboard shortcuts

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