show

package
v0.41.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 8 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, which is used to execute the command, and configures the command with flags and arguments.

Types

type Runner

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

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

func NewRunner

func NewRunner(factory framework.Factory) *Runner

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

func (*Runner) Run

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

Run runs the `rad workspace show` command.

func (*Runner) Validate

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

Runner.Validate checks if the workspace and output format arguments are valid and sets the workspace and format fields of the Runner struct accordingly, returning an error if either argument is invalid.

Jump to

Keyboard shortcuts

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