Documentation
¶
Overview ¶
Package globals provides shared flag structures and utilities for CLI commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
Flags holds global common flags across all commands.
type ResourceFlags ¶
type ResourceFlags struct {
Provider string
Author string
Limit int
Search string
Filter []string
All bool
}
ResourceFlags holds flags for resource-specific operations.
func AddResourceFlags ¶
func AddResourceFlags(cmd *cobra.Command) *ResourceFlags
AddResourceFlags adds resource-specific flags to a command.
func ParseResources ¶
func ParseResources(cmd *cobra.Command) *ResourceFlags
ParseResources extracts resource flags from a command. The command must have had AddResourceFlags called on it, otherwise this will panic.
Click to show internal directories.
Click to hide internal directories.