Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextCmd = &cobra.Command{ Use: "context [command]", Short: "Configure your Meshery deployment(s)", Long: `Configure and switch between different named Meshery server and adapter versions and deployments.`, Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { currentContext := viper.GetString("current-context") if currentContext == "" { return errors.New("current context not set") } log.Printf("Current context: %s\n", currentContext) return cmd.Help() } if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { return errors.New(utils.SystemError(fmt.Sprintf("invalid command: \"%s\"", args[0]))) } return nil }, }
ContextCmd represents the context command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.