Documentation
¶
Overview ¶
Package shared provides common utilities for provider-based commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProviderSubcommands ¶
func AddProviderSubcommands(parent *cobra.Command, opts ProviderSubcommandOptions)
AddProviderSubcommands creates a subcommand for each qualifying provider.
Types ¶
type ProviderSubcommandOptions ¶
type ProviderSubcommandOptions struct {
// RequireChecks filters to only providers that support checks
RequireChecks bool
// SetupFlags adds extra flags to the subcommand (e.g., --check, --output)
SetupFlags func(*cobra.Command, provider.Instance)
// RunFunc is the command handler
RunFunc func(cmd *cobra.Command, providerType string) error
}
ProviderSubcommandOptions configures the creation of provider subcommands.
Click to show internal directories.
Click to hide internal directories.