Help us shape the future of Go! Take the 2026 Go Developer Survey

show

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

NewCommand creates a new Cobra command and a Runner object to show environment details, with flags for workspace, resource group, environment name and output.

Types

type EnvProvider added in v0.62.0

type EnvProvider struct {
	// Provider is the type of the provider (e.g., "azure", "aws", "kubernetes")
	Provider string
	// Properties contains the provider details in a comma-separated key-value format
	// e.g., "subscriptionId: 'sub-id', resourceGroupName: 'rg-name'" for azure provider"
	Properties string
}

EnvProvider represents a provider and its properties for an environment.

type Runner

type Runner struct {
	ConfigHolder            *framework.ConfigHolder
	Output                  output.Interface
	Workspace               *workspaces.Workspace
	EnvironmentName         string
	Format                  string
	RadiusCoreClientFactory *corerpv20250801.ClientFactory
}

Runner is the runner implementation for the `rad env show` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad env show` runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run runs the `rad env show` command.

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate runs validation for the `rad env show` command.

Jump to

Keyboard shortcuts

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