shared

package
v1.203.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package shared provides utilities shared between terraform and its subpackages.

Index

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

func HandlePromptError(err error, name string) error

HandlePromptError processes errors from interactive prompts. Returns nil if the error should be ignored, or the error if it should propagate.

func PromptForComponent

func PromptForComponent(cmd *cobra.Command) (string, error)

PromptForComponent shows an interactive selector for component selection.

func PromptForStack

func PromptForStack(cmd *cobra.Command, component string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL