action

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilOptions is returned when Execute receives nil options.
	ErrNilOptions = errors.New("action: nil options given")
	// ErrNilLogger is returned when ExecuteOptions.Logger is nil.
	ErrNilLogger = errors.New("action: nil logger given")
)

Functions

func Execute

func Execute(ctx context.Context, opts *ExecuteOptions) error

Execute runs the specified action after templating its commands.

Types

type ExecuteOptions

type ExecuteOptions struct {
	ActionName   string
	WorktreePath string
	Info         *worktree.WorktreeInfo
	CLIArgs      string
	Logger       *logger.Logger
	Stdin        io.Reader
	Stdout       io.Writer
	Stderr       io.Writer
	Env          []string
}

ExecuteOptions contains dependencies and context for running an action.

Jump to

Keyboard shortcuts

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