Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "mesheryctl", Short: "Meshery Command Line tool", Long: `Meshery is the service mesh management plane, providing lifecycle, performance, and configuration management of service meshes and their workloads.`, Args: cobra.MinimumNArgs(1), PreRunE: func(cmd *cobra.Command, args []string) error { if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { return errors.New(utils.RootError(fmt.Sprintf("invalid command: \"%s\"", args[0]))) } return nil }, RunE: func(cmd *cobra.Command, args []string) error { b, err := cmd.Flags().GetBool("version") if err != nil { return err } if b { versionCmd.Run(nil, nil) return nil } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.