Versions in this module Expand all Collapse all v1 v1.25.1 May 15, 2026 Changes in this version + func DefaultShell() string + func DetectShellFromFile(filePath string) string + func IsSupportedShell(shell string) bool + func ValidateShell(shell string) error + type Config struct + Args []string + Env []string + Interactive bool + Shell string + func (c *Config) Validate() error + type ExecutionError struct + ExitCode int + IsInline bool + Shell string + func (e *ExecutionError) Error() string + type Executor struct + func New(config Config) (*Executor, error) + func (e *Executor) Execute(ctx context.Context, scriptPath string) error + func (e *Executor) ExecuteDirect(ctx context.Context, command string, args []string) error + func (e *Executor) ExecuteInline(ctx context.Context, scriptContent string) error + type InvalidShellError struct + Shell string + func (e *InvalidShellError) Error() string + type ScriptNotFoundError struct + Path string + func (e *ScriptNotFoundError) Error() string + type ValidationError struct + Field string + Reason string + func (e *ValidationError) Error() string