show

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 17 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 recipe pack details, with flags for workspace, resource group and output.

Types

type Runner

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

Runner is the runner implementation for the `rad recipe-pack show` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad recipe-pack show` runner.

func (*Runner) Run

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

Run attempts to retrieve recipe pack details from an ApplicationsManagementClient and write the details to an output in a specified format, returning an error if any of these operations fail.

func (*Runner) Validate

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

Validate runs validation for the `rad recipe-pack show` command.

Validate checks the request object for a workspace, scope, recipe pack name, and output format, and sets the corresponding fields in the Runner struct if they are found. If any of these fields are not found, an error is returned.

Jump to

Keyboard shortcuts

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