shell

package
v0.1.0-dev.20260217012657 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *execution.ActionRegistry)

Register registers all shell actions with the given registry.

Types

type Exec

type Exec struct{ Impl *Provider }

Exec executes a POSIX shell command from the "command" slot.

func (*Exec) Do

func (o *Exec) Do(ctx *execution.Context, slots map[string]any) (execution.Result, execution.UndoState, error)

func (*Exec) Name

func (o *Exec) Name() string

func (*Exec) Undo

func (o *Exec) Undo(_ *execution.Context, _ map[string]any, _ execution.UndoState) error

type PowerShell

type PowerShell struct{ Impl *Provider }

PowerShell executes a PowerShell command from the "command" slot (Windows).

func (*PowerShell) Do

func (*PowerShell) Name

func (o *PowerShell) Name() string

func (*PowerShell) Undo

type Provider

type Provider struct{}

Provider provides shell command execution.

func (*Provider) PowerShell

func (p *Provider) PowerShell(command string, output io.Writer) error

PowerShell executes a PowerShell command (Windows).

func (*Provider) Shell

func (p *Provider) Shell(command string, output io.Writer) error

Shell executes a POSIX shell command.

Jump to

Keyboard shortcuts

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