Documentation ¶
Index ¶
- type Cmd
- func (c *Cmd) Command(path string, args ...string) *Cmd
- func (c *Cmd) Interrupt() (err error)
- func (c *Cmd) IsAlive() bool
- func (c *Cmd) NoOut() *Cmd
- func (c *Cmd) OnCompleted(onCompleted func()) *Cmd
- func (c *Cmd) Run() error
- func (c *Cmd) SetBackground(background ...bool) *Cmd
- func (c *Cmd) SetDIR(dir string) *Cmd
- func (c *Cmd) SetEnv(name, value string) *Cmd
- func (c *Cmd) Start(ctx context.Context) error
- func (c *Cmd) Terminate() (err error)
- func (c *Cmd) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct { Name string `yaml:"name"` Path string `yaml:"path"` Args []string `yaml:"args"` Env []string `yaml:"env"` Dir string `yaml:"dir"` Background bool `yaml:"background"` PID int `yaml:"-"` // contains filtered or unexported fields }
func (*Cmd) OnCompleted ¶
func (*Cmd) SetBackground ¶
SetBackground usage: c.SetBackground() or c.SetBackground(false)
Click to show internal directories.
Click to hide internal directories.