runner

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MaxOutputBytes = 32 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecSpec

type ExecSpec struct {
	Program string
	Args    []string
	Cwd     string
}

type OSRunner

type OSRunner struct {
	Timeout time.Duration
}

func (OSRunner) Run

func (r OSRunner) Run(spec ExecSpec) Result

type Result

type Result struct {
	Program   string
	Args      []string
	Cwd       string
	Stdout    string
	Stderr    string
	ExitCode  int
	Err       string
	Truncated bool
}

type Runner

type Runner interface {
	Run(ExecSpec) Result
}

Jump to

Keyboard shortcuts

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