executor

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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