execution

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package execution provides types and functions for handling process execution results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

type Execution struct {
	// contains filtered or unexported fields
}

Execution represents the result of executing a process.

func NewExecution

func NewExecution(
	bb []byte,
	err error,
) Execution

NewExecution creates a new Execution instance with the provided output bytes and error.

Parameters:

  • bb: A byte slice representing the output of the execution.
  • err: An error representing any error that occurred during execution.

func (Execution) Code

func (e Execution) Code() code.Code

Code returns the exit code of the execution.

func (Execution) Err

func (e Execution) Err() error

Err returns the error that occurred during execution.

func (Execution) Failed

func (e Execution) Failed() bool

Failed indicates whether the execution failed based on the presence of an error.

func (Execution) Output

func (e Execution) Output() output.Output

Output returns the output of the execution as an Output instance.

func (Execution) String

func (e Execution) String() string

String returns the string representation of the execution output.

Jump to

Keyboard shortcuts

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