Documentation
¶
Overview ¶
Package actionscobra is a launchr plugin providing cobra interface to actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionsGroup = &launchr.CommandGroup{
ID: "actions",
Title: "Actions:",
}
ActionsGroup is a command group definition.
Functions ¶
Types ¶
type JSONOutput ¶ added in v0.23.0
type JSONOutput struct {
Result any `json:"result,omitempty"`
Error *JSONError `json:"error,omitempty"`
}
JSONOutput is the structured output format when --json flag is used.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is launchr.Plugin to add command line interface to actions.
func (*Plugin) CobraAddCommands ¶
CobraAddCommands implements launchr.CobraPlugin interface to add actions in command line.
func (*Plugin) OnAppInit ¶
OnAppInit implements launchr.Plugin interface.
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() launchr.PluginInfo
PluginInfo implements launchr.Plugin interface.
type YAMLOutput ¶ added in v0.23.0
type YAMLOutput struct {
Result any `yaml:"result,omitempty"`
Error *YAMLError `yaml:"error,omitempty"`
}
YAMLOutput is the structured output format when --yaml flag is used.
Click to show internal directories.
Click to hide internal directories.