mosers
/
eaas-vde-proxy
Archiviert
1
0
Fork 0
1 cmd
MrMcX hat diese Seite bearbeitet vor 3 Jahren

package cmd // import "proxy/cmd"

Types

type Cmd struct

{
        *exec.Cmd
        InWriter  io.Writer
        OutReader io.Reader
        // Has unexported fields.
}

Cmd Overloads the exec.Cmd class to save the full command and adds custom input/output pipes

func Start(args string) (*Cmd, io.Reader, io.Writer)

Start creates a new cmd object with given arguments, runs and then returns it

func (c *Cmd) WaitH()

WaitH runs Cmd.Wait() and catches the possible error