shell

package
v0.1.0-dev.20260222182334 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 — Exec executes a POSIX shell command.

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

type PowerShell

type PowerShell struct{ Impl *Provider }

PowerShell — PowerShell executes a PowerShell command (Windows).

func (*PowerShell) Do

func (*PowerShell) Name

func (o *PowerShell) Name() string

type Provider

type Provider struct{}

Provider provides shell command execution.

func (*Provider) Exec

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

Exec executes a POSIX shell command.

Parameters:

  • command: Shell command string to execute via sh -c

func (*Provider) PowerShell

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

PowerShell executes a PowerShell command (Windows).

Parameters:

  • command: PowerShell command string to execute

Jump to

Keyboard shortcuts

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