Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppCmd = &cobra.Command{ Use: "app", Short: "Cloud Native Apps Management", Long: `All apps operations: import, list, view, onboard and offboard`, Example: ` // Base command mesheryctl app [subcommand] `, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { return cmd.Help() } if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { availableSubCmds := []string{"onboard", "offboard", "list", "import", "view"} suggestedCmd := utils.FindClosestArg(args[0], availableSubCmds) if suggestedCmd != "" && suggestedCmd[0] == args[0][0] { return errors.New(utils.AppError(fmt.Sprintf("'%s' is a invalid command for '%s'. Did you mean this?\n\t%s\n", args[0], cmd.CalledAs(), suggestedCmd))) } return errors.New(utils.AppError(fmt.Sprintf("'%s' is a invalid command for '%s'. Use 'mesheryctl perf --help' to display usage guide.\n", args[0], cmd.CalledAs()))) } return nil }, }
AppCmd represents the root command for app commands
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.