Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_shell" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Runs commands in a shell.", Category: "utility", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{}, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
Shell string `yaml:"shell" json:"shell" desc:"Shell interpreter to use (e.g., bash, sh, zsh)."`
ShellArgs []string `yaml:"shellArgs" json:"shellArgs" desc:"Additional arguments to pass to the shell."`
EnvVars map[string]string `yaml:"envVars" json:"envVars" format:"expressionMap" desc:"Environment variables to set for the shell command."`
Command string `yaml:"command" json:"command" require:"A" format:"shell" desc:"The shell command 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.