command

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string
	Args []string
	// contains filtered or unexported fields
}

Command

func New

func New() *Command

New

func (*Command) AddPipe

func (c *Command) AddPipe(cmd *Command)

AddPipe

func (*Command) Cd

func (c *Command) Cd(path string) *Command

Cd

func (*Command) Run

func (c *Command) Run()

Run

func (*Command) SetCMD

func (c *Command) SetCMD(name string, args ...string) *Command

func (*Command) SetStderr

func (c *Command) SetStderr(err io.Writer)

SetStderr

func (*Command) SetStdin

func (c *Command) SetStdin(in io.Reader)

SetStdin

func (*Command) SetStdout

func (c *Command) SetStdout(out io.Writer)

SetStdout

func (*Command) Start

func (c *Command) Start() error

Start

func (*Command) StdoutPipe

func (c *Command) StdoutPipe() io.ReadCloser

StdoutPipe

func (*Command) Wait

func (c *Command) Wait() error

Wait

Jump to

Keyboard shortcuts

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