execrunner

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ExecRunnerID = "quitsh::exec"

Variables

This section is empty.

Functions

func NewExecRunner

func NewExecRunner(config any, settings config.IBuildSettings) (runner.IRunner, error)

func Register

func Register(
	buildSettings config.IBuildSettings,
	factory factory.IFactory,
	registerKey bool,
) (err error)

Register registers the runner.

func UnmarshalRunnerConfig

func UnmarshalRunnerConfig(raw step.AuxConfigRaw) (step.AuxConfig, error)

UnmarshalRunnerConfig unmarshals RunnerConfig.

Types

type ExecRunner

type ExecRunner struct {
	// contains filtered or unexported fields
}

func (*ExecRunner) ID

func (*ExecRunner) Run

func (r *ExecRunner) Run(ctx runner.IContext) error

type RunnerConfig

type RunnerConfig struct {
	Name string `yaml:"name" default:"unnamed"`

	// Either run a script piped to command `cmd`, which could be `bash -eu`.
	Script string `yaml:"script"`

	// ... or run a command directly.
	Cmd []string `yaml:"cmd"`

	// Env sets additional environment variables.
	Env []string `yaml:"env"`
}

func (*RunnerConfig) Validate

func (c *RunnerConfig) Validate() error

Jump to

Keyboard shortcuts

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