shell

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) enno.Tool

Types

type Config

type Config struct {
	Workdir        string
	Timeout        time.Duration
	DenyList       []string
	MaxOutputChars int
	SafetyPolicy   SafetyPolicy
}

type SafetyPolicy added in v0.7.0

type SafetyPolicy string
const (
	SafetyPolicyDenyList SafetyPolicy = "denylist"
	SafetyPolicyAllowAll SafetyPolicy = "allow_all"
)

type Shell

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

func (*Shell) Run

func (s *Shell) Run(ctx context.Context, command string) (string, error)

Jump to

Keyboard shortcuts

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