gexec

package module
v0.0.0-...-5d792fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 11 Imported by: 0

README

gexec

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupedCmd

type GroupedCmd struct {
	*exec.Cmd
	// contains filtered or unexported fields
}

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) SignalAll

func (c *GroupedCmd) SignalAll(sig os.Signal) error

func (*GroupedCmd) Start

func (c *GroupedCmd) Start() error

func (*GroupedCmd) WaitAll

func (c *GroupedCmd) WaitAll() error

func (*GroupedCmd) WaitAllWithContext

func (c *GroupedCmd) WaitAllWithContext(ctx context.Context, sig os.Signal) error

type Process

type Process struct {
	*os.Process
}

func (*Process) TryWait

func (p *Process) TryWait() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL