cmdconfig

package
v0.1.0-rc.202402231511 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

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 IsLocal

func IsLocal() bool

func ResolveTarget

func ResolveTarget[T modconfig.ModTreeItem](cmdArgs []string, w *workspace.Workspace) (T, error)

ResolveTarget extracts a of target 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

func ValidateSnapshotArgs(ctx context.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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