sh

package
v0.0.0-...-d425fac Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(command ...string) *exec.Cmd

func CommandWithOutput

func CommandWithOutput(stdout, stderr io.Writer, command ...string) *exec.Cmd

func FileExists

func FileExists(filename string) bool

func RunAt

func RunAt(path string, command ...string)

Types

type CommandOutput

type CommandOutput struct {
	Output      string
	ErrorOutput string
	Error       error
}

func Run

func Run(command ...string) (output CommandOutput)

type ProxyWriter

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

func NewProxyWriter

func NewProxyWriter(file *os.File) *ProxyWriter

func (*ProxyWriter) String

func (w *ProxyWriter) String() string

func (*ProxyWriter) Write

func (w *ProxyWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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