proc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 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 Cmd

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

func NewCmd

func NewCmd(cmd string, args ...string) *Cmd

func (*Cmd) Run

func (c *Cmd) Run() int

func (*Cmd) RunWithStdin

func (c *Cmd) RunWithStdin(in string) int

func (*Cmd) Stderr

func (c *Cmd) Stderr() string

func (*Cmd) Stdin

func (c *Cmd) Stdin() string

func (*Cmd) Stdout

func (c *Cmd) Stdout() string

type Proc

type Proc struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewProc

func NewProc(cmd string, args ...string) *Proc

func (*Proc) ExitCode

func (proc *Proc) ExitCode() int

func (*Proc) GetPid

func (proc *Proc) GetPid() int

func (*Proc) IsAlive

func (proc *Proc) IsAlive() bool

func (*Proc) Start

func (proc *Proc) Start()

func (*Proc) Stderr

func (proc *Proc) Stderr() <-chan []byte

func (*Proc) Stdout

func (proc *Proc) Stdout() <-chan []byte

func (*Proc) Stop

func (proc *Proc) Stop()

Jump to

Keyboard shortcuts

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