runner

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Run executes the command across all workspaces

func RunScript

func RunScript(opts Options, script string) error

RunScript executes a shell script in each workspace

func StreamOutput

func StreamOutput(cmd *exec.Cmd, prefix string, output io.Writer) error

StreamOutput streams command output with workspace prefixes

Types

type Options

type Options struct {
	Workspaces []string       // List of workspace paths to run in
	Command    string         // Command to execute
	Args       []string       // Arguments for the command
	JSONMode   bool           // Whether to aggregate JSON output
	Logger     *logrus.Logger // Logger for output
	RootDir    string         // Root directory for relative path display
}

Options configures the runner behavior

type Result

type Result struct {
	Workspace string      `json:"workspace"`
	Success   bool        `json:"success"`
	Output    interface{} `json:"output,omitempty"`
	Error     string      `json:"error,omitempty"`
}

Result represents the output from a single workspace execution

Jump to

Keyboard shortcuts

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