Documentation ¶
Overview ¶
Package sharedaction handles all operations that do not require a cloud controller
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct{}
Actor handles all shared actions
func (Actor) CommandInfoByName ¶
func (_ Actor) CommandInfoByName(commandList interface{}, commandName string) (CommandInfo, error)
CommandInfoByName returns the help information for a particular commandName in the commandList.
func (Actor) CommandInfos ¶
func (_ Actor) CommandInfos(commandList interface{}) map[string]CommandInfo
CommandInfos returns a slice of CommandInfo that only fills in the Name and Description for all the commands in commandList
type CommandFlag ¶
type CommandFlag struct { // Short is the short form of the flag Short string // Long is the long form of the flag Long string // Description is the description of the flag Description string }
CommandFlag contains the help details of a command's flag
type CommandInfo ¶
type CommandInfo struct { // Name is the command name Name string // Description is the command description Description string // Alias is the command alias Alias string // Usage is the command usage string, may contain examples and flavor text Usage string // RelatedCommands is a list of commands related to the command RelatedCommands []string // Flags contains the list of flags for this command Flags []CommandFlag // Environment is a list of environment variables specific for this command Environment []EnvironmentVariable }
CommandInfo contains the help details of a command
type EnvironmentVariable ¶
Environment contains env vars specific for this command
type ErrorInvalidCommand ¶
type ErrorInvalidCommand struct {
CommandName string
}
func (ErrorInvalidCommand) Error ¶
func (err ErrorInvalidCommand) Error() string
Click to show internal directories.
Click to hide internal directories.