cmdrunner

package
v0.0.0-...-2f10389 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner interface {

	// Run runs a command, given options
	Run(options *RunOptions, format string, vars ...interface{}) (string, error)
}

CmdRunner specifies the interface to an underlying command runner

type RunOptions

type RunOptions struct {
	WorkingDir *string
	Stdin      *string
	Env        map[string]string
}

RunOptions specifies options to CmdRunner.Run

type ShellRunner

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

func NewShellRunner

func NewShellRunner(parentLogger nuclio.Logger) (*ShellRunner, error)

func (*ShellRunner) Run

func (sr *ShellRunner) Run(options *RunOptions, format string, vars ...interface{}) (string, error)

func (*ShellRunner) SetShell

func (sr *ShellRunner) SetShell(shell string)

Jump to

Keyboard shortcuts

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