utils

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ORGANIZATION_ID_FLAG = "organization-id"
	PROJECT_ID_FLAG      = "project-id"
)

Variables

This section is empty.

Functions

func SetProjectFlagsAsRequired

func SetProjectFlagsAsRequired(cfg *clicfg.Config, cmd *cobra.Command) error

This function is meant to run in the PreRun of V2 commands to ensure that the flags are marked as required if no values have been set through the `config project add/use` commands.

func SetProjetDefaults

func SetProjetDefaults(cfg *clicfg.Config, organizationId string, projectId string) (string, string, error)

This function is meant to run in the RunE of V2 commands to ensure that the values are set as the given default values if no values are given via flags when running the command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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