Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigFromContext(ctx context.Context) *viper.Viper
- func DirectoryConfigFromContext(ctx context.Context) *config.DirectoryConfig
- func Execute() error
- func NewAppCommand() *cobra.Command
- func NewEnvironmentCommand() *cobra.Command
- func NewRecipeCommand() *cobra.Command
- func NewResourceCommand() *cobra.Command
- func NewWorkspaceCommand() *cobra.Command
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 ¶
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 NewEnvironmentCommand ¶
func NewRecipeCommand ¶
func NewResourceCommand ¶
func NewWorkspaceCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.