Documentation
¶
Overview ¶
cmdexec package is wrapper around os/exec and handles common use cases while executing commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Binary string // Full path to the binary to execute
Args []string
Env []string
// contains filtered or unexported fields
}
Command is a command to execute.
func NewCommand ¶
NewCommand creates a new command with the provided binary and arguments.
func (*Command) EnableDebugMode ¶ added in v0.0.3
func (c *Command) EnableDebugMode()
EnableDebugMode enables the debug mode for the command.
Click to show internal directories.
Click to hide internal directories.