runner

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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