command

package
v0.0.0-...-9183633 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultTimeout = 5 * time.Second

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) (int, bool)

Types

type Command

type Command interface {
	String() string
	Path() string
	LogToFile(name string) error
	SetTimeout(timeout time.Duration)
	Start() error
	Restart() error
	Signal(sig os.Signal)
	Done() <-chan struct{}
	Err() error
}

func New

func New(cmd string, args ...string) (Command, error)

Jump to

Keyboard shortcuts

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