cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 10 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 struct {
	// contains filtered or unexported fields
}

func NewCmdRunner

func NewCmdRunner(command string, args []string, opts ...Option) *CmdRunner

func (*CmdRunner) Options

func (r *CmdRunner) Options(opts ...Option)

func (*CmdRunner) Run

func (runner *CmdRunner) Run(signals <-chan os.Signal, ready chan<- struct{}) error

type Option

type Option func(r *CmdRunner)

func WithContext

func WithContext(ctx context.Context) Option

func WithDumpResultFilePath

func WithDumpResultFilePath(filepath string) Option

func WithOutFilePath

func WithOutFilePath(filepath string) Option

Jump to

Keyboard shortcuts

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