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 { log.Println("Args passed in", args) if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { return errors.New(utils.RootError(fmt.Sprintf("invalid command: \"%s\"", args[0]))) } return nil }, PersistentPreRun: func(cmd *cobra.Command, args []string) { latest, err := utils.GetLatestStableReleaseTag() version := constants.GetMesheryctlVersion() if err == nil && latest != version { log.Printf("A new release of mesheryctl is available: %s → %s", version, latest) log.Printf("https://github.com/layer5io/meshery/releases/tag/%s", latest) log.Print("Check https://docs.meshery.io/guides/upgrade#upgrading-meshery-cli for instructions on how to update mesheryctl\n") } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.