list

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 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 deleting a Radius Application, with flags for workspace, resource group, application name and confirmation, and returns the command and a Runner object.

Types

type Runner

type Runner struct {
	ConfigHolder      *framework.ConfigHolder
	ConnectionFactory connections.Factory
	InputPrompter     prompt.Interface
	Output            output.Interface

	ApplicationName string
	EnvironmentName string
	Scope           string
	Confirm         bool
	Workspace       *workspaces.Workspace
}

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

func NewRunner

func NewRunner(factory framework.Factory) *Runner

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

func (*Runner) Run

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

"Run" prompts the user to confirm the deletion of an application, creates a connection to the application management client, and deletes the application if it exists. If the application does not exist, it logs a message. It returns an error if there is an issue with the connection or the prompt.

func (*Runner) Validate

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

Validate checks the workspace, scope, application name, and confirm flag 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