Documentation
¶
Overview ¶
Package shared provides utilities shared between terraform and its subpackages.
Index ¶
- func ComponentsArgCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func HandlePromptError(err error, name string) error
- func PromptForComponent(cmd *cobra.Command) (string, error)
- func PromptForStack(cmd *cobra.Command, component string) (string, error)
- func StackFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentsArgCompletion ¶
func ComponentsArgCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ComponentsArgCompletion provides shell completion for component positional arguments.
func HandlePromptError ¶
HandlePromptError processes errors from interactive prompts. Returns nil if the error should be ignored, or the error if it should propagate.
func PromptForComponent ¶
PromptForComponent shows an interactive selector for component selection.
func PromptForStack ¶
PromptForStack shows an interactive selector for stack selection. If component is provided, filters stacks to only those containing the component.
func StackFlagCompletion ¶
func StackFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
StackFlagCompletion provides shell completion for the --stack flag. If a component was provided as the first positional argument, it filters stacks to only those containing that component.
Types ¶
This section is empty.