src/server/pkg/exec/exec.go
func (c *Cmd) CombinedOutput() ([]byte, error) {
	if c.Stdout != nil {
		return nil, errors.New("exec: Stdout already set")
	}
	if c.Stderr != nil {
		return nil, errors.New("exec: Stderr already set")
	}
	var b bytes.Buffer
	c.Stdout = &b
	c.Stderr = &b
	err := c.Run()
	return b.Bytes(), err
}
func (c *Cmd) CombinedOutput() ([]byte, error) {
	if c.Stdout != nil {
		return nil, errors.New("exec: Stdout already set")
	}
	if c.Stderr != nil {
		return nil, errors.New("exec: Stderr already set")
	}
	var b bytes.Buffer
	c.Stdout = &b
	c.Stderr = &b
	err := c.Run()
	return b.Bytes(), err
}
func ( c * Cmd ) CombinedOutput ( ) ( [ ] byte , error ) { if c . Stdout != nil { return nil , errors . New ( " " ) } if c . Stderr != nil { return nil , errors . New ( " " ) } var b bytes . Buffer c . Stdout = & b c . Stderr = & b err := c . Run ( ) return b . Bytes ( ) , err }
// CombinedOutput runs the command and returns its combined standard
// output and standard error.
CombinedOutput runs the command and returns its combined standard output and standard error .