„cmd“ hinzufügen
Ursprung
79d3390489
Commit
725b4a5997
@ -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
|
In neuem Issue referenzieren