cmd

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: 75 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevenshteinCutoff = 2

	ContainerType = "containers"
)

Variables

View Source
var ConfigHolder = &framework.ConfigHolder{}
View Source
var ConfigHolderKey = framework.NewContextKey("config")
View Source
var RootCmd = &cobra.Command{
	Use:               "rad",
	Short:             "Radius CLI",
	Long:              `Radius CLI`,
	SilenceErrors:     true,
	SilenceUsage:      true,
	DisableAutoGenTag: true,
}

RootCmd is the root command of the rad CLI. This is exported so we can generate docs for it.

Functions

func ConfigFromContext

func ConfigFromContext(ctx context.Context) *viper.Viper

TODO: Deprecate once all the commands are moved to new framework

func DirectoryConfigFromContext

func DirectoryConfigFromContext(ctx context.Context) *config.DirectoryConfig

TODO: Deprecate once all the commands are moved to new framework

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. It also initializes the tracerprovider for cli.

Execute returns true

func NewAppCommand

func NewAppCommand() *cobra.Command

func NewEnvironmentCommand

func NewEnvironmentCommand() *cobra.Command

func NewRecipeCommand

func NewRecipeCommand() *cobra.Command

func NewResourceCommand

func NewResourceCommand() *cobra.Command

func NewWorkspaceCommand

func NewWorkspaceCommand() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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