Documentation ¶
Index ¶
- func DisplayConfig()
- func GetGenericTypeName[T any]() string
- func IsLocal() bool
- func ResolveTargets(cmdArgs []string, commandTargetType string, w *workspace.Workspace) ([]modconfig.ModTreeItem, map[string]*modconfig.QueryArgs, error)
- func SetAppSpecificConstants()
- func ValidateSnapshotArgs(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayConfig ¶
func DisplayConfig()
DisplayConfig prints all config set via WorkspaceProfile or HCL options
func GetGenericTypeName ¶
GetGenericTypeName returns lower case form of type unqualified name
func ResolveTargets ¶
func ResolveTargets(cmdArgs []string, commandTargetType string, w *workspace.Workspace) ([]modconfig.ModTreeItem, map[string]*modconfig.QueryArgs, error)
ResolveTargets extracts a list of targets and (if present) query args from the command line parameters
- if no resource type is specified in the name, it is added from the command type
- validate the resource type specified in the name matches the command type
- verify the resource exists in the workspace
- if the command type is 'query', the target may be a query string rather than a resource name in this case, convert into a query and add to workspace (to allow for simple snapshot generation)
func SetAppSpecificConstants ¶
func SetAppSpecificConstants()
SetAppSpecificConstants sets app specific constants defined in pipe-fittings
func ValidateSnapshotArgs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.