shell

package
v0.1.0-dev.20260223223859 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package shell provides shell command execution actions for the operation graph.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *op.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 *op.Context, slots map[string]any) (op.Result, op.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 (o *PowerShell) Do(ctx *op.Context, slots map[string]any) (op.Result, op.UndoState, error)

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

+devlore:access=planned

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

+devlore:access=planned

Jump to

Keyboard shortcuts

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