Documentation ¶
Index ¶
- type GroupedCmd
- func (c *GroupedCmd) CombinedOutput() ([]byte, error)
- func (c *GroupedCmd) JobObject() *jobObject
- func (c *GroupedCmd) KillAll() error
- func (c *GroupedCmd) Output() ([]byte, error)
- func (c *GroupedCmd) Pgid() int
- func (c *GroupedCmd) Processes() ([]*Process, error)
- func (c *GroupedCmd) Run() error
- func (c *GroupedCmd) SignalAll(sig os.Signal) error
- func (c *GroupedCmd) Start() error
- func (c *GroupedCmd) WaitAll() error
- func (c *GroupedCmd) WaitAllWithContext(ctx context.Context, sig os.Signal) error
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupedCmd ¶
func Grouped ¶
func Grouped(cmd *exec.Cmd) *GroupedCmd
func (*GroupedCmd) CombinedOutput ¶
func (c *GroupedCmd) CombinedOutput() ([]byte, error)
CombinedOutput runs the command and returns its combined standard output and standard error.
func (*GroupedCmd) JobObject ¶
func (c *GroupedCmd) JobObject() *jobObject
func (*GroupedCmd) KillAll ¶
func (c *GroupedCmd) KillAll() error
func (*GroupedCmd) Output ¶
func (c *GroupedCmd) Output() ([]byte, error)
Output runs the command and returns its standard output. Any returned error will usually be of type *ExitError. If c.Stderr was nil, Output populates ExitError.Stderr.
func (*GroupedCmd) Pgid ¶
func (c *GroupedCmd) Pgid() int
func (*GroupedCmd) Processes ¶
func (c *GroupedCmd) Processes() ([]*Process, error)
func (*GroupedCmd) Run ¶
func (c *GroupedCmd) Run() error
func (*GroupedCmd) Start ¶
func (c *GroupedCmd) Start() error
func (*GroupedCmd) WaitAll ¶
func (c *GroupedCmd) WaitAll() error
func (*GroupedCmd) WaitAllWithContext ¶
Click to show internal directories.
Click to hide internal directories.