cmdutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cmdutil provides shared helpers for command implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveOrganization

func ResolveOrganization(profileOrganization string, explicit string) string

ResolveOrganization returns org from: explicit flag > profile > terraform cloud config.

func ResolvePath

func ResolvePath(pathTemplate, org string) (string, error)

ResolvePath substitutes {organization_name} in a path template with org. Returns an error if org is required but empty, with helpful message about setting one via `profile set default_organization` or `--organization`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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