Documentation
¶
Index ¶
Constants ¶
View Source
const ExecRunnerID = "quitsh::exec"
Variables ¶
This section is empty.
Functions ¶
func NewExecRunner ¶
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) ID() runner.RegisterID
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
Click to show internal directories.
Click to hide internal directories.