list

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 11 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 for showing Radius application details, which takes in a factory object and returns a Cobra command and a Runner object.

Types

type Runner

type Runner struct {
	ConfigHolder      *framework.ConfigHolder
	ConnectionFactory connections.Factory
	Workspace         *workspaces.Workspace
	Output            output.Interface

	ApplicationName string
	Format          string
}

Runner is the Runner implementation for the `rad app show` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates an instance of the runner for the `rad app show` command.

func (*Runner) Run

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

Run() uses the provided context and connection factory to create an applications management client, then attempts to show the application with the given name. If the application is not found or has been deleted, an error is returned. Otherwise, the application is written to the output in the specified format, and nil is returned.

func (*Runner) Validate

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

Validate checks the workspace, scope, application name and output format from the command line arguments and request object, and returns an error if any of these are invalid.

Jump to

Keyboard shortcuts

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