platform

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecRunner

type ExecRunner struct {
	Timeout   time.Duration
	MaxOutput int
	Verbose   func(string)
}

func (ExecRunner) Run

func (r ExecRunner) Run(parent context.Context, path string, args ...string) Result

func (ExecRunner) StreamLines

func (r ExecRunner) StreamLines(ctx context.Context, path string, consume func([]byte) error, args ...string) error

type LineStreamer

type LineStreamer interface {
	StreamLines(context.Context, string, func([]byte) error, ...string) error
}

type Result

type Result struct {
	Stdout    string
	Stderr    string
	ExitCode  int
	Duration  time.Duration
	Err       error
	TimedOut  bool
	Truncated bool
}

type Runner

type Runner interface {
	Run(context.Context, string, ...string) Result
}

Jump to

Keyboard shortcuts

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