exec

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor struct{}

func (CommandExecutor) Execute

func (e CommandExecutor) Execute(ctx context.Context, opts Options, in io.Reader, out io.Writer) error

type Executor

type Executor interface {
	Execute(context.Context, Options, io.Reader, io.Writer) error
}

Executor provides an interface for command execution. It is used here for testing purpose mostly.

type Options

type Options struct {
	Root                  string
	Commands              []string
	Env                   map[string]string
	Interactive, UseStdin bool
}

Options contains the data that controls the execution.

Jump to

Keyboard shortcuts

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