executor

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultExecutor

type DefaultExecutor struct {
	Env []string
}

func (*DefaultExecutor) AddEnv

func (c *DefaultExecutor) AddEnv(envs []string)

func (*DefaultExecutor) Exec

func (c *DefaultExecutor) Exec(ctx context.Context, command string) (Result, error)

type Result

type Result struct {
	Stdout   string
	Stderr   string
	ExitCode int
}

func (*Result) PrintStdErr

func (r *Result) PrintStdErr()

func (*Result) PrintStdOut

func (r *Result) PrintStdOut()

Jump to

Keyboard shortcuts

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