Documentation ¶
Overview ¶
Copyright 2023 Khulnasoft, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License
Index ¶
Constants ¶
View Source
const ( ErrImportAppCode = "1080" ErrInValidSourceCode = "1081" ErrOnboardAppCode = "1082" ErrAppFoundCode = "1083" ErrInvalidAppNameOrIDCode = "1084" ErrAppFlagCode = "1085" ErrAppManifestCode = "1188" )
Variables ¶
View Source
var AppCmd = &cobra.Command{ Use: "app", Short: "Cloud Native Apps Management", Long: `All apps operations: import, list, view, onboard and offboard. Find more information at: https://docs.khulnasoft.com/reference/meshplayctl#command-reference`, Example: ` // Base command: meshplayctl 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 an 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 an invalid command for '%s'. Use 'meshplayctl perf --help' to display usage guide.\n", args[0], cmd.CalledAs()))) } return nil }, }
AppCmd represents the root command for app commands
Functions ¶
func ErrAppFound ¶
func ErrAppFound() error
func ErrAppManifest ¶
func ErrAppManifest() error
func ErrImportApp ¶
func ErrInValidSource ¶
func ErrInvalidAppNameOrID ¶
func ErrOnboardApp ¶
func ErrOnboardApp() error
func ErrViewAppFlag ¶
func ErrViewAppFlag() error
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.