Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_command" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Runs a shell command.", Category: "utility", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "stdout", Type: "string", Description: "The combined stdout/stderr output from the command.", }, { Name: "error", Type: "string", Description: "The error message if the command failed.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
AllowedToFail bool `yaml:"allowed_to_fail" json:"allowed_to_fail" desc:"If true, the task succeeds even if the command fails."`
Command []string `yaml:"command" json:"command" require:"A" desc:"The command and arguments to execute."`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.