Documentation ¶
Overview ¶
package commands provides the interfaces and structures to trigger and run shell commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoCmd = fmt.Errorf("cmd provided without a command configured; fix it")
)
Errors produced by this file.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action contains the exported methods for this package.
type Command ¶
type Command struct { Name string `json:"name" toml:"name" xml:"name" yaml:"name"` Command string `json:"-" toml:"command" xml:"command" yaml:"command"` Shell bool `json:"shell" toml:"shell" xml:"shell" yaml:"shell"` Log bool `json:"log" toml:"log" xml:"log" yaml:"log"` Notify bool `json:"notify" toml:"notify" xml:"notify" yaml:"notify"` Timeout cnfg.Duration `json:"-" toml:"timeout" xml:"timeout" yaml:"timeout"` Hash string `json:"hash" toml:"-" xml:"-" yaml:"-"` // contains filtered or unexported fields }
Command contains the input data for a defined command. It also contains some saved data about the command being run.
Click to show internal directories.
Click to hide internal directories.