commander

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdExecutor

type CmdExecutor interface {
	Execute() error
	Stderr() string
	Stdout() string
}

func NewCommandExecutor

func NewCommandExecutor(cmd string) CmdExecutor

func NewCommandExecutorWithTimeout

func NewCommandExecutorWithTimeout(cmd string, timeout time.Duration) CmdExecutor

type CommandExecutor

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

func (*CommandExecutor) Execute

func (ce *CommandExecutor) Execute() error

func (*CommandExecutor) Stderr

func (ce *CommandExecutor) Stderr() string

func (*CommandExecutor) Stdout

func (ce *CommandExecutor) Stdout() string

type CommandExecutorWithTimeout

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

func (*CommandExecutorWithTimeout) Execute

func (ct *CommandExecutorWithTimeout) Execute() error

func (*CommandExecutorWithTimeout) Stderr

func (ct *CommandExecutorWithTimeout) Stderr() string

func (*CommandExecutorWithTimeout) Stdout

func (ct *CommandExecutorWithTimeout) Stdout() string

Jump to

Keyboard shortcuts

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