Documentation
¶
Index ¶
- func Exec(ctx context.Context, dir string, stm IOStreams, name string, arg ...string) error
- func ForkExec(ctx context.Context, dir string, name string, arg ...string) error
- func ForkExecKill(ctx context.Context, dir string, name string) error
- func ForkExecRestart(ctx context.Context, dir string, name string) error
- func IsRunning(ctx context.Context, dir string, name string) bool
- func LookPath(file string) (string, error)
- type IOStreams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForkExec ¶
ForkExec forks a new process and execs the given command. The process will be terminated when the context is canceled.
func ForkExecKill ¶
ForkExecKill kills the process if it is running.
func ForkExecRestart ¶
ForkExecRestart restarts the process if it is not running.
Types ¶
Click to show internal directories.
Click to hide internal directories.