Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerFromCmd ¶
func ControllerFromCmd(cmd *cobra.Command) (*controller.Exec, error)
ControllerFromCmd reuses the controller helper from create/shared.
func LoggerFromCmd ¶
LoggerFromCmd reuses the logger helper from create/shared.
func PrintTable ¶
PrintTable prints resources in a table format.
Types ¶
type OutputFormat ¶
type OutputFormat string
OutputFormat represents the output format type.
const ( OutputFormatYAML OutputFormat = "yaml" OutputFormatJSON OutputFormat = "json" OutputFormatTable OutputFormat = "table" )
func ParseOutputFormat ¶
func ParseOutputFormat(cmd *cobra.Command) (OutputFormat, error)
ParseOutputFormat parses and validates the --output flag from the command.
Click to show internal directories.
Click to hide internal directories.