Documentation
¶
Overview ¶
Package command holds command related files
Index ¶
Constants ¶
View Source
const LoggerName = "PRIV-ACTION"
LoggerName defines the logger name for the private action runner
Variables ¶
This section is empty.
Functions ¶
func MakeCommand ¶
func MakeCommand(subcommandFactories []SubcommandFactory) *cobra.Command
MakeCommand makes the top-level Cobra command for this command.
Types ¶
type GlobalParams ¶
type GlobalParams struct {
// ConfFilePath holds the path to the folder containing the configuration
// file, to allow overrides from the command line
ConfFilePath string
// ExtraConfFilePath represents the paths to additional configuration files.
ExtraConfFilePath []string
// NoColor is a flag to disable color output
NoColor bool
}
GlobalParams contains the values of agent-global Cobra flags.
A pointer to this type is passed to SubcommandFactory's, but its contents are not valid until Cobra calls the subcommand's Run or RunE function.
type SubcommandFactory ¶
type SubcommandFactory func(globalParams *GlobalParams) []*cobra.Command
SubcommandFactory returns a sub-command factory
Click to show internal directories.
Click to hide internal directories.