Documentation ¶
Overview ¶
Package runcommand implements the RunCommand plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
pluginutil.DefaultPlugin
}
Plugin is the type for the RunCommand plugin.
func NewPlugin ¶
func NewPlugin(pluginConfig pluginutil.PluginConfig) (*Plugin, error)
NewPlugin returns a new instance of the plugin.
func (*Plugin) Execute ¶
func (p *Plugin) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag) (res contracts.PluginResult)
Execute runs multiple sets of commands and returns their outputs. res.Output will contain a slice of RunCommandPluginOutput.
type RunCommandPluginInput ¶
type RunCommandPluginInput struct { contracts.PluginInput RunCommand []string ID string WorkingDirectory string TimeoutSeconds interface{} }
RunCommandPluginInput represents one set of commands executed by the RunCommand plugin.
Click to show internal directories.
Click to hide internal directories.