runner

package
v0.8.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MPL-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIRunner

type CLIRunner struct{}

CLIRunner will use exec.Command as runtime medium.

func (*CLIRunner) Run

func (*CLIRunner) Run(c string, args ...string) ([]byte, error)

Run will use exec.Command as a backing medium and run CombinedOutput.

type Runner

type Runner interface {
	// Run takes a command name and some arguments and will apply it to the current environment.
	Run(command string, args ...string) ([]byte, error)
}

Runner is an entity which can execute commands with whatever backing medium behind it.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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