Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrCommandDisabled = errors.New(...) + func Build(b *behavior.Behavior, h Host) (any, error) + func FromGohai(ctx context.Context) bool + func Require[P any](h Host, b *behavior.Behavior) P + func Settings[T any](h Host) T + type Exec interface + RunCmd func(ctx context.Context, name string, args []string) (string, error) + RunCmdFull func(ctx context.Context, name string, args []string, cwd string, timeout int) (*exec.CmdResult, error) + RunPrivilegedCmd func(ctx context.Context, name string, args []string) (string, error) + RunPrivilegedCmdFull func(ctx context.Context, name string, args []string, stdin string) (stdout string, stderr string, exitCode int, err error) + RunPrivilegedCmdWithStdin func(ctx context.Context, name string, args []string, stdin string) (string, error) + RunReadCmd func(ctx context.Context, name string, args []string) ([]byte, error) + type Host struct + CommandEnabled bool + Container bool + Exec Exec + FS avfs.VFS + Facts func() map[string]any + FileState provider.FileState + FileStateBucket string + Hostname string + Logger *slog.Logger + Now func() time.Time + Objects Objects + Platform behavior.PlatformName + Required map[string]any + Resolver source.Resolver + Settings any + func (h Host) Sources() source.Sources + func (h Host) Time() time.Time + type Objects interface + Object func(ctx context.Context, name string) (content []byte, contentType types.ContentType, err error)