types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Command string // Include final command that was executed
	Stdout  bytes.Buffer
	Stderr  bytes.Buffer

	DebugData *bytes.Buffer // only available when debug mode is enabled
	// contains filtered or unexported fields
}

Result contains the result of a command execution.

func (*Result) GetExitCode

func (r *Result) GetExitCode() int

GetExitCode returns the exit code of the command.

func (*Result) GetExitError

func (r *Result) GetExitError() *exec.ExitError

GetExitError returns the exit error if any.

func (*Result) SetExitError

func (r *Result) SetExitError(err *exec.ExitError)

SetExitError sets the exit error (internal use only).

type Variable

type Variable struct {
	Name  string
	Value string
}

func (*Variable) String

func (v *Variable) String() string

Jump to

Keyboard shortcuts

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