cli

package
v0.0.0-...-ff7a769 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSandboxCreation = errors.New("sandbox creation failed")

Functions

func Execute

func Execute(ctx context.Context, argv0 string, args []string, stdout, stderr io.Writer) int

func ExecuteWithDeps

func ExecuteWithDeps(ctx context.Context, argv0 string, args []string, deps Dependencies) int

Types

type Dependencies

type Dependencies struct {
	Runner         Runner
	Stdin          io.Reader
	Stdout, Stderr io.Writer
}

type Runner

type Runner interface {
	Resolve(context.Context, string, []string) (policy.Plan, error)
	Run(context.Context, policy.Plan, Streams) (int, error)
	Command(context.Context, string, []string, Streams) error
}

type Streams

type Streams struct {
	Stdin          io.Reader
	Stdout, Stderr io.Writer
}

Jump to

Keyboard shortcuts

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