Discover Packages
github.com/radius-project/radius
pkg
cli
cmd
workspace
list
package
Version:
v0.26.8
Opens a new window with list of versions in this module.
Published: Oct 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewCommand creates a new cobra command for listing local workspaces and returns a Runner to execute the command.
Runner is the runner implementation for the `rad workspace list` command.
NewRunner creates a new instance of the `rad workspace list` runner.
Run reads the workspace section from the config, puts the workspace names in alphabetical order, creates a slice of workspaces,
and then writes the formatted workspaces to the output. It returns an error if any of these steps fail.
Validate checks the output format of the command and sets the format in the Runner struct, returning
an error if the output format is invalid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.