Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultConfig is the default config. DefaultConfig = Config{ Tasks: map[string]TaskConfig{}, } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Tasks map[string]TaskConfig `config:"tasks"` Debug bool `config:"debug"` }
Config is the root struct for the config file.
type TaskConfig ¶
type TaskConfig struct { CommandRaw interface{} `config:"command"` WorkingDirectory string `config:"workdir"` ParserRaw map[string]interface{} `config:"parser"` Schedule string `config:"schedule"` Debug bool `config:"debug"` Shell bool `config:"shell"` }
TaskConfig represents the task config.
func (*TaskConfig) Command ¶
func (t *TaskConfig) Command() ([]string, error)
Command parses the command line as array.
Click to show internal directories.
Click to hide internal directories.