exec

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunOptions

type RunOptions struct {
	Script        string
	Args          []string
	BunConstraint string   // Override bun version from CLI
	ExtraPackages []string // Additional packages from CLI

	// Sandbox options
	Sandbox     sandbox.Sandbox // Sandbox instance (set by CLI)
	Network     bool            // Whether network is enabled
	AllowHosts  []string        // Allowed hosts for network access
	AllowRead   []string        // Additional readable paths
	AllowWrite  []string        // Additional writable paths
	AllowEnv    []string        // Environment variables to pass through
	MemoryMB    int             // Memory limit in MB
	TimeoutSecs int             // Execution timeout in seconds
	CPUSeconds  int             // CPU time limit in seconds
}

RunOptions contains options for running a script

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner executes scripts with their dependencies

func NewRunner

func NewRunner(c *cache.Cache, verbose, quiet bool) *Runner

NewRunner creates a new script runner

func (*Runner) Run

func (r *Runner) Run(opts RunOptions) (int, error)

Run executes a script with its dependencies

Jump to

Keyboard shortcuts

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