diff --git a/cmd.md b/cmd.md new file mode 100644 index 0000000..d0d020d --- /dev/null +++ b/cmd.md @@ -0,0 +1,19 @@ +# 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 \ No newline at end of file