Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandExecutor ¶
func NewCommandExecutor(ctx context.Context) types.CommandExecutor
NewCommandExecutor creates a new instance of the RealCommandExecutor.
Types ¶
type RealCommandExecutor ¶
type RealCommandExecutor struct {
// contains filtered or unexported fields
}
RealCommandExecutor is a struct that implements the CommandExecutor interface.
func (*RealCommandExecutor) ExecuteCommand ¶
func (r *RealCommandExecutor) ExecuteCommand(name string, args []string, env []string) (stdout string, stderr string, err error)
ExecuteCommand executes a command and returns the stdout, stderr, and error.
Click to show internal directories.
Click to hide internal directories.