From e1986200be0b79f1c58d35bec9cd51e747c76549 Mon Sep 17 00:00:00 2001 From: mevrin Date: Tue, 4 Jun 2024 23:11:04 -0400 Subject: [PATCH 1/2] refactor(mesheryctl): Promote model command Signed-off-by: mevrin --- ...model-list.md => mesheryctl-model-list.md} | 14 +- ...l-search.md => mesheryctl-model-search.md} | 12 +- ...model-view.md => mesheryctl-model-view.md} | 12 +- ...ryctl-exp-model.md => mesheryctl-model.md} | 14 +- .../cli/root/experimental/experimental.go | 3 +- mesheryctl/internal/cli/root/model/list.go | 127 +++++ mesheryctl/internal/cli/root/model/model.go | 170 ++++++ mesheryctl/internal/cli/root/model/search.go | 111 ++++ mesheryctl/internal/cli/root/model/view.go | 125 +++++ mesheryctl/internal/cli/root/root.go | 2 + mesheryctl/internal/cli/root/system/model.go | 492 ------------------ .../internal/cli/root/system/model_test.go | 1 - mesheryctl/internal/cli/root/system/system.go | 2 - 13 files changed, 562 insertions(+), 523 deletions(-) rename docs/pages/reference/mesheryctl/{mesheryctl-exp-model-list.md => mesheryctl-model-list.md} (83%) rename docs/pages/reference/mesheryctl/{mesheryctl-exp-model-search.md => mesheryctl-model-search.md} (79%) rename docs/pages/reference/mesheryctl/{mesheryctl-exp-model-view.md => mesheryctl-model-view.md} (82%) rename docs/pages/reference/mesheryctl/{mesheryctl-exp-model.md => mesheryctl-model.md} (82%) create mode 100644 mesheryctl/internal/cli/root/model/list.go create mode 100644 mesheryctl/internal/cli/root/model/model.go create mode 100644 mesheryctl/internal/cli/root/model/search.go create mode 100644 mesheryctl/internal/cli/root/model/view.go delete mode 100644 mesheryctl/internal/cli/root/system/model.go delete mode 100644 mesheryctl/internal/cli/root/system/model_test.go diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-model-list.md b/docs/pages/reference/mesheryctl/mesheryctl-model-list.md similarity index 83% rename from docs/pages/reference/mesheryctl/mesheryctl-exp-model-list.md rename to docs/pages/reference/mesheryctl/mesheryctl-model-list.md index c0afc9862c0..0b51b503475 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-model-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model-list.md @@ -1,8 +1,8 @@ --- layout: default -title: mesheryctl-exp-model-list -permalink: reference/mesheryctl/exp/model/list -redirect_from: reference/mesheryctl/exp/model/list/ +title: mesheryctl-model-list +permalink: reference/mesheryctl/model/list +redirect_from: reference/mesheryctl/model/list/ type: reference display-title: "false" language: en @@ -10,7 +10,7 @@ command: exp subcommand: model --- -# mesheryctl exp model list +# mesheryctl model list list registered models @@ -19,7 +19,7 @@ list registered models list name of all registered models
 
-mesheryctl exp model list [flags] +mesheryctl model list [flags]
@@ -29,7 +29,7 @@ mesheryctl exp model list [flags] View list of models
 
-mesheryctl exp model list +mesheryctl model list
@@ -37,7 +37,7 @@ mesheryctl exp model list View list of models with specified page number (25 models per page)
 
-mesheryctl exp model list --page 2 +mesheryctl model list --page 2
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-model-search.md b/docs/pages/reference/mesheryctl/mesheryctl-model-search.md similarity index 79% rename from docs/pages/reference/mesheryctl/mesheryctl-exp-model-search.md rename to docs/pages/reference/mesheryctl/mesheryctl-model-search.md index b3dc800d64a..cc29021e860 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-model-search.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model-search.md @@ -1,8 +1,8 @@ --- layout: default -title: mesheryctl-exp-model-search -permalink: reference/mesheryctl/exp/model/search -redirect_from: reference/mesheryctl/exp/model/search/ +title: mesheryctl-model-search +permalink: reference/mesheryctl/model/search +redirect_from: reference/mesheryctl/model/search/ type: reference display-title: "false" language: en @@ -10,7 +10,7 @@ command: exp subcommand: model --- -# mesheryctl exp model search +# mesheryctl model search search models @@ -19,7 +19,7 @@ search models search a models by search string
 
-mesheryctl exp model search [flags] +mesheryctl model search [flags]
@@ -29,7 +29,7 @@ mesheryctl exp model search [flags] View current provider
 
-mesheryctl exp model search [query-text] +mesheryctl model search [query-text]
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-model-view.md b/docs/pages/reference/mesheryctl/mesheryctl-model-view.md similarity index 82% rename from docs/pages/reference/mesheryctl/mesheryctl-exp-model-view.md rename to docs/pages/reference/mesheryctl/mesheryctl-model-view.md index 49618abf246..b4ff6774988 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-model-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model-view.md @@ -1,8 +1,8 @@ --- layout: default -title: mesheryctl-exp-model-view -permalink: reference/mesheryctl/exp/model/view -redirect_from: reference/mesheryctl/exp/model/view/ +title: mesheryctl-model-view +permalink: reference/mesheryctl/model/view +redirect_from: reference/mesheryctl/model/view/ type: reference display-title: "false" language: en @@ -10,7 +10,7 @@ command: exp subcommand: model --- -# mesheryctl exp model view +# mesheryctl model view view model @@ -19,7 +19,7 @@ view model view a model queried by its name
 
-mesheryctl exp model view [flags] +mesheryctl model view [flags]
@@ -29,7 +29,7 @@ mesheryctl exp model view [flags] View current provider
 
-mesheryctl exp model view [model-name] +mesheryctl model view [model-name]
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-model.md b/docs/pages/reference/mesheryctl/mesheryctl-model.md similarity index 82% rename from docs/pages/reference/mesheryctl/mesheryctl-exp-model.md rename to docs/pages/reference/mesheryctl/mesheryctl-model.md index 00f1ee42ad4..363074ed72b 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-model.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model.md @@ -1,8 +1,8 @@ --- layout: default -title: mesheryctl-exp-model -permalink: reference/mesheryctl/exp/model -redirect_from: reference/mesheryctl/exp/model/ +title: mesheryctl-model +permalink: reference/mesheryctl/model +redirect_from: reference/mesheryctl/model/ type: reference display-title: "false" language: en @@ -10,7 +10,7 @@ command: exp subcommand: model --- -# mesheryctl exp model +# mesheryctl model View list of models and detail of models @@ -19,7 +19,7 @@ View list of models and detail of models View list of models and detailed information of a specific model
 
-mesheryctl exp model [flags] +mesheryctl model [flags]
@@ -29,7 +29,7 @@ mesheryctl exp model [flags] To view list of components
 
-mesheryctl exp model list +mesheryctl model list
@@ -37,7 +37,7 @@ mesheryctl exp model list To view a specific model
 
-mesheryctl exp model view [model-name] +mesheryctl model view [model-name]
diff --git a/mesheryctl/internal/cli/root/experimental/experimental.go b/mesheryctl/internal/cli/root/experimental/experimental.go index 76748c2eb98..d1a080e90f7 100644 --- a/mesheryctl/internal/cli/root/experimental/experimental.go +++ b/mesheryctl/internal/cli/root/experimental/experimental.go @@ -21,7 +21,6 @@ import ( "github.com/layer5io/meshery/mesheryctl/internal/cli/root/connections" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/environments" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/relationships" - "github.com/layer5io/meshery/mesheryctl/internal/cli/root/system" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/workspaces" "github.com/layer5io/meshery/mesheryctl/pkg/utils" "github.com/pkg/errors" @@ -49,7 +48,7 @@ var ExpCmd = &cobra.Command{ } func init() { - availableSubcommands = append(availableSubcommands, system.ModelCmd, components.ComponentsCmd, connections.ConnectionsCmd, relationships.RelationshipCmd, workspaces.WorkSpaceCmd, environments.EnvironmentCmd) + availableSubcommands = append(availableSubcommands, components.ComponentsCmd, connections.ConnectionsCmd, relationships.RelationshipCmd, workspaces.WorkSpaceCmd, environments.EnvironmentCmd) ExpCmd.AddCommand(availableSubcommands...) } diff --git a/mesheryctl/internal/cli/root/model/list.go b/mesheryctl/internal/cli/root/model/list.go new file mode 100644 index 00000000000..6a32db9cc5d --- /dev/null +++ b/mesheryctl/internal/cli/root/model/list.go @@ -0,0 +1,127 @@ +package model + +import ( + "encoding/json" + "fmt" + "github.com/layer5io/meshery/mesheryctl/internal/cli/root/config" + "github.com/layer5io/meshery/mesheryctl/pkg/utils" + "github.com/layer5io/meshery/server/models" + "github.com/pkg/errors" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + "github.com/spf13/viper" + "io" + "net/http" +) + +var listModelCmd = &cobra.Command{ + Use: "list", + Short: "list registered models", + Long: "list name of all registered models", + Example: ` +// View list of models +mesheryctl model list + +// View list of models with specified page number (25 models per page) +mesheryctl model list --page 2 + `, + PreRunE: func(cmd *cobra.Command, args []string) error { + //Check prerequisite + + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + return err + } + err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) + if err != nil { + return err + } + ctx, err := mctlCfg.GetCurrentContext() + if err != nil { + return err + } + err = ctx.ValidateVersion() + if err != nil { + return err + } + return nil + }, + RunE: func(cmd *cobra.Command, args []string) error { + if len(args) != 0 { + return errors.New(utils.SystemModelSubError("this command takes no arguments\n", "list")) + } + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + log.Fatalln(err, "error processing config") + } + + baseUrl := mctlCfg.GetBaseMesheryURL() + var url string + if cmd.Flags().Changed("page") { + url = fmt.Sprintf("%s/api/meshmodels/models?page=%d", baseUrl, pageNumberFlag) + } else { + url = fmt.Sprintf("%s/api/meshmodels/models?pagesize=all", baseUrl) + } + req, err := utils.NewRequest(http.MethodGet, url, nil) + if err != nil { + utils.Log.Error(err) + return err + } + + resp, err := utils.MakeRequest(req) + if err != nil { + utils.Log.Error(err) + return err + } + + // defers the closing of the response body after its use, ensuring that the resources are properly released. + defer resp.Body.Close() + + data, err := io.ReadAll(resp.Body) + if err != nil { + utils.Log.Error(err) + return err + } + + modelsResponse := &models.MeshmodelsAPIResponse{} + err = json.Unmarshal(data, modelsResponse) + if err != nil { + utils.Log.Error(err) + return err + } + + header := []string{"Model", "Category", "Version"} + rows := [][]string{} + + for _, model := range modelsResponse.Models { + if len(model.DisplayName) > 0 { + rows = append(rows, []string{model.Name, model.Category.Name, model.Version}) + } + } + + if len(rows) == 0 { + // if no model is found + // fmt.Println("No model(s) found") + whiteBoardPrinter.Println("No model(s) found") + return nil + } + + if cmd.Flag("count").Value.String() == "true" { + // fmt.Println("Total number of models: ", len(rows)) + whiteBoardPrinter.Println("Total number of models: ", len(rows)) + return nil + } + + if cmd.Flags().Changed("page") { + utils.PrintToTable(header, rows) + } else { + err := utils.HandlePagination(maxRowsPerPage, "models", rows, header) + if err != nil { + utils.Log.Error(err) + return err + } + } + + return nil + }, +} diff --git a/mesheryctl/internal/cli/root/model/model.go b/mesheryctl/internal/cli/root/model/model.go new file mode 100644 index 00000000000..01ef1d93a7b --- /dev/null +++ b/mesheryctl/internal/cli/root/model/model.go @@ -0,0 +1,170 @@ +// Copyright Meshery Authors +// +// 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. + +package model + +import ( + "encoding/json" + "fmt" + "os" + + "github.com/fatih/color" + "github.com/layer5io/meshery/mesheryctl/internal/cli/root/config" + "github.com/layer5io/meshery/mesheryctl/pkg/utils" + "github.com/layer5io/meshkit/models/meshmodel/core/v1beta1" + "github.com/manifoldco/promptui" + "github.com/pkg/errors" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + "github.com/spf13/viper" +) + +var ( + // flag used to specify the page number in list command + pageNumberFlag int + // flag used to specify format of output of view {model-name} command + outFormatFlag string + + // Maximum number of rows to be displayed in a page + maxRowsPerPage = 25 + + // Color for the whiteboard printer + whiteBoardPrinter = color.New(color.FgHiBlack, color.BgWhite, color.Bold) + + availableSubcommands = []*cobra.Command{listModelCmd, viewModelCmd, searchModelCmd} +) + +// represents the mesheryctl model view [model-name] subcommand. + +// represents the mesheryctl model search [query-text] subcommand. + +// ModelCmd represents the mesheryctl model command +var ModelCmd = &cobra.Command{ + Use: "model", + Short: "View list of models and detail of models", + Long: "View list of models and detailed information of a specific model", + Example: ` +// To view list of components +mesheryctl model list + +// To view a specific model +mesheryctl model view [model-name] + `, + PreRunE: func(cmd *cobra.Command, args []string) error { + //Check prerequisite + + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + return err + } + err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) + if err != nil { + return err + } + ctx, err := mctlCfg.GetCurrentContext() + if err != nil { + return err + } + err = ctx.ValidateVersion() + if err != nil { + return err + } + return nil + }, + Args: func(cmd *cobra.Command, args []string) error { + if len(args) == 0 { + if err := cmd.Usage(); err != nil { + return err + } + return utils.ErrInvalidArgument(errors.New("please provide a subcommand")) + } + return nil + }, + RunE: func(cmd *cobra.Command, args []string) error { + if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { + return errors.New(utils.SystemModelSubError(fmt.Sprintf("'%s' is an invalid subcommand. Please provide required options from [view]. Use 'mesheryctl model --help' to display usage guide.\n", args[0]), "model")) + } + _, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + log.Fatalln(err, "error processing config") + } + err = cmd.Usage() + if err != nil { + return err + } + return nil + }, +} + +func init() { + listModelCmd.Flags().IntVarP(&pageNumberFlag, "page", "p", 1, "(optional) List next set of models with --page (default = 1)") + listModelCmd.Flags().BoolP("count", "", false, "(optional) Get the number of models in total") + viewModelCmd.Flags().StringVarP(&outFormatFlag, "output-format", "o", "yaml", "(optional) format to display in [json|yaml]") + ModelCmd.AddCommand(availableSubcommands...) +} + +// selectModelPrompt lets user to select a model if models are more than one +func selectModelPrompt(models []v1beta1.Model) v1beta1.Model { + modelArray := []v1beta1.Model{} + modelNames := []string{} + + modelArray = append(modelArray, models...) + + for _, model := range modelArray { + modelName := fmt.Sprintf("%s, version: %s", model.DisplayName, model.Version) + modelNames = append(modelNames, modelName) + } + + prompt := promptui.Select{ + Label: "Select a model", + Items: modelNames, + } + + for { + i, _, err := prompt.Run() + if err != nil { + continue + } + + return modelArray[i] + } +} + +func outputJson(model v1beta1.Model) error { + if err := prettifyJson(model); err != nil { + // if prettifyJson return error, marshal output in conventional way using json.MarshalIndent + // but it doesn't convert unicode to its corresponding HTML string (it is default behavior) + // e.g unicode representation of '&' will be printed as '\u0026' + if output, err := json.MarshalIndent(model, "", " "); err != nil { + return errors.Wrap(err, "failed to format output in JSON") + } else { + fmt.Print(string(output)) + } + } + return nil +} + +// prettifyJson takes a v1beta1.Model struct as input, marshals it into a nicely formatted JSON representation, +// and prints it to standard output with proper indentation and without escaping HTML entities. +func prettifyJson(model v1beta1.Model) error { + // Create a new JSON encoder that writes to the standard output (os.Stdout). + enc := json.NewEncoder(os.Stdout) + // Configure the JSON encoder settings. + // SetEscapeHTML(false) prevents special characters like '<', '>', and '&' from being escaped to their HTML entities. + enc.SetEscapeHTML(false) + enc.SetIndent("", " ") + + // Any errors during the encoding process will be returned as an error. + return enc.Encode(model) +} diff --git a/mesheryctl/internal/cli/root/model/search.go b/mesheryctl/internal/cli/root/model/search.go new file mode 100644 index 00000000000..8f8da17b365 --- /dev/null +++ b/mesheryctl/internal/cli/root/model/search.go @@ -0,0 +1,111 @@ +package model + +import ( + "encoding/json" + "fmt" + "github.com/layer5io/meshery/mesheryctl/internal/cli/root/config" + "github.com/layer5io/meshery/mesheryctl/pkg/utils" + "github.com/layer5io/meshery/server/models" + "github.com/pkg/errors" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + "github.com/spf13/viper" + "io" + "net/http" +) + +var searchModelCmd = &cobra.Command{ + Use: "search", + Short: "search models", + Long: "search a models by search string", + Example: ` +// View current provider +mesheryctl model search [query-text] + `, + PreRunE: func(cmd *cobra.Command, args []string) error { + //Check prerequisite + + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + return err + } + err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) + if err != nil { + return err + } + ctx, err := mctlCfg.GetCurrentContext() + if err != nil { + return err + } + err = ctx.ValidateVersion() + if err != nil { + return err + } + return nil + }, + Args: func(_ *cobra.Command, args []string) error { + const errMsg = "Usage: mesheryctl model search [query-text]\nRun 'mesheryctl model search --help' to see detailed help message" + if len(args) == 0 { + return utils.ErrInvalidArgument(errors.New("Please provide a model name. " + errMsg)) + } + return nil + }, + RunE: func(cmd *cobra.Command, args []string) error { + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + log.Fatalln(err, "error processing config") + } + + baseUrl := mctlCfg.GetBaseMesheryURL() + queryText := args[0] + + url := fmt.Sprintf("%s/api/meshmodels/models?search=%s&pagesize=all", baseUrl, queryText) + req, err := utils.NewRequest(http.MethodGet, url, nil) + if err != nil { + utils.Log.Error(err) + return err + } + + resp, err := utils.MakeRequest(req) + if err != nil { + utils.Log.Error(err) + return err + } + + // defers the closing of the response body after its use, ensuring that the resources are properly released. + defer resp.Body.Close() + + data, err := io.ReadAll(resp.Body) + if err != nil { + utils.Log.Error(err) + return err + } + + modelsResponse := &models.MeshmodelsAPIResponse{} + err = json.Unmarshal(data, modelsResponse) + if err != nil { + utils.Log.Error(err) + return err + } + + header := []string{"Model", "Category", "Version"} + rows := [][]string{} + + for _, model := range modelsResponse.Models { + if len(model.DisplayName) > 0 { + rows = append(rows, []string{model.Name, model.Category.Name, model.Version}) + } + } + + if len(rows) == 0 { + // if no model is found + // fmt.Println("No model(s) found") + whiteBoardPrinter.Println("No model(s) found") + return nil + } else { + utils.PrintToTable(header, rows) + } + + return nil + }, +} diff --git a/mesheryctl/internal/cli/root/model/view.go b/mesheryctl/internal/cli/root/model/view.go new file mode 100644 index 00000000000..a5e85b42997 --- /dev/null +++ b/mesheryctl/internal/cli/root/model/view.go @@ -0,0 +1,125 @@ +package model + +import ( + "encoding/json" + "fmt" + "github.com/layer5io/meshery/mesheryctl/internal/cli/root/config" + "github.com/layer5io/meshery/mesheryctl/pkg/utils" + "github.com/layer5io/meshery/server/models" + "github.com/layer5io/meshkit/models/meshmodel/core/v1beta1" + "github.com/pkg/errors" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + "github.com/spf13/viper" + "gopkg.in/yaml.v2" + "io" + "net/http" + "strings" +) + +var viewModelCmd = &cobra.Command{ + Use: "view", + Short: "view model", + Long: "view a model queried by its name", + Example: ` +// View current provider +mesheryctl model view [model-name] + `, + PreRunE: func(cmd *cobra.Command, args []string) error { + //Check prerequisite + + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + return err + } + err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) + if err != nil { + return err + } + ctx, err := mctlCfg.GetCurrentContext() + if err != nil { + return err + } + err = ctx.ValidateVersion() + if err != nil { + return err + } + return nil + }, + Args: func(_ *cobra.Command, args []string) error { + const errMsg = "Usage: mesheryctl model view [model-name]\nRun 'mesheryctl model view --help' to see detailed help message" + if len(args) == 0 { + return fmt.Errorf("model name isn't specified\n\n%v", errMsg) + } else if len(args) > 1 { + return fmt.Errorf("too many arguments\n\n%v", errMsg) + } + return nil + }, + RunE: func(cmd *cobra.Command, args []string) error { + mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) + if err != nil { + log.Fatalln(err, "error processing config") + } + + baseUrl := mctlCfg.GetBaseMesheryURL() + model := args[0] + + url := fmt.Sprintf("%s/api/meshmodels/models/%s?pagesize=all", baseUrl, model) + req, err := utils.NewRequest(http.MethodGet, url, nil) + if err != nil { + utils.Log.Error(err) + return err + } + + resp, err := utils.MakeRequest(req) + if err != nil { + utils.Log.Error(err) + return err + } + + // defers the closing of the response body after its use, ensuring that the resources are properly released. + defer resp.Body.Close() + + data, err := io.ReadAll(resp.Body) + if err != nil { + utils.Log.Error(err) + return err + } + + modelsResponse := &models.MeshmodelsAPIResponse{} + err = json.Unmarshal(data, modelsResponse) + if err != nil { + utils.Log.Error(err) + return err + } + + var selectedModel v1beta1.Model + + if modelsResponse.Count == 0 { + fmt.Println("No model(s) found for the given name ", model) + return nil + } else if modelsResponse.Count == 1 { + selectedModel = modelsResponse.Models[0] + } else { + selectedModel = selectModelPrompt(modelsResponse.Models) + } + + var output []byte + + // user may pass flag in lower or upper case but we have to keep it lower + // in order to make it consistent while checking output format + outFormatFlag = strings.ToLower(outFormatFlag) + if outFormatFlag == "yaml" { + if output, err = yaml.Marshal(selectedModel); err != nil { + return errors.Wrap(err, "failed to format output in YAML") + } + fmt.Print(string(output)) + } else if outFormatFlag == "json" { + return outputJson(selectedModel) + } else { + return errors.New("output-format choice invalid, use [json|yaml]") + } + + return nil + }, +} diff --git a/mesheryctl/internal/cli/root/root.go b/mesheryctl/internal/cli/root/root.go index b6f988cabbd..58095e38b78 100644 --- a/mesheryctl/internal/cli/root/root.go +++ b/mesheryctl/internal/cli/root/root.go @@ -24,6 +24,7 @@ import ( "github.com/layer5io/meshery/mesheryctl/internal/cli/root/experimental" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/filter" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/mesh" + "github.com/layer5io/meshery/mesheryctl/internal/cli/root/model" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/pattern" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/perf" "github.com/layer5io/meshery/mesheryctl/internal/cli/root/registry" @@ -114,6 +115,7 @@ func init() { filter.FilterCmd, registry.RegistryCmd, components.ComponentsCmd, + model.ModelCmd, } RootCmd.AddCommand(availableSubcommands...) diff --git a/mesheryctl/internal/cli/root/system/model.go b/mesheryctl/internal/cli/root/system/model.go deleted file mode 100644 index 21df49178c8..00000000000 --- a/mesheryctl/internal/cli/root/system/model.go +++ /dev/null @@ -1,492 +0,0 @@ -// Copyright Meshery Authors -// -// 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. - -package system - -import ( - "encoding/json" - "fmt" - "io" - "net/http" - "os" - "strings" - - "github.com/fatih/color" - "github.com/layer5io/meshery/mesheryctl/internal/cli/root/config" - "github.com/layer5io/meshery/mesheryctl/pkg/utils" - "github.com/layer5io/meshery/server/models" - "github.com/layer5io/meshkit/models/meshmodel/core/v1beta1" - "github.com/manifoldco/promptui" - "github.com/pkg/errors" - log "github.com/sirupsen/logrus" - "github.com/spf13/cobra" - "github.com/spf13/viper" - "gopkg.in/yaml.v2" -) - -var ( - // flag used to specify the page number in list command - pageNumberFlag int - // flag used to specify format of output of view {model-name} command - outFormatFlag string - - // Maximum number of rows to be displayed in a page - maxRowsPerPage = 25 - - // Color for the whiteboard printer - whiteBoardPrinter = color.New(color.FgHiBlack, color.BgWhite, color.Bold) -) - -// represents the mesheryctl exp model list subcommand. -var listModelCmd = &cobra.Command{ - Use: "list", - Short: "list registered models", - Long: "list name of all registered models", - Example: ` -// View list of models -mesheryctl exp model list - -// View list of models with specified page number (25 models per page) -mesheryctl exp model list --page 2 - `, - PreRunE: func(cmd *cobra.Command, args []string) error { - //Check prerequisite - - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - return err - } - err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) - if err != nil { - return err - } - ctx, err := mctlCfg.GetCurrentContext() - if err != nil { - return err - } - err = ctx.ValidateVersion() - if err != nil { - return err - } - return nil - }, - RunE: func(cmd *cobra.Command, args []string) error { - if len(args) != 0 { - return errors.New(utils.SystemModelSubError("this command takes no arguments\n", "list")) - } - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - log.Fatalln(err, "error processing config") - } - - baseUrl := mctlCfg.GetBaseMesheryURL() - var url string - if cmd.Flags().Changed("page") { - url = fmt.Sprintf("%s/api/meshmodels/models?page=%d", baseUrl, pageNumberFlag) - } else { - url = fmt.Sprintf("%s/api/meshmodels/models?pagesize=all", baseUrl) - } - req, err := utils.NewRequest(http.MethodGet, url, nil) - if err != nil { - utils.Log.Error(err) - return err - } - - resp, err := utils.MakeRequest(req) - if err != nil { - utils.Log.Error(err) - return err - } - - // defers the closing of the response body after its use, ensuring that the resources are properly released. - defer resp.Body.Close() - - data, err := io.ReadAll(resp.Body) - if err != nil { - utils.Log.Error(err) - return err - } - - modelsResponse := &models.MeshmodelsAPIResponse{} - err = json.Unmarshal(data, modelsResponse) - if err != nil { - utils.Log.Error(err) - return err - } - - header := []string{"Model", "Category", "Version"} - rows := [][]string{} - - for _, model := range modelsResponse.Models { - if len(model.DisplayName) > 0 { - rows = append(rows, []string{model.Name, model.Category.Name, model.Version}) - } - } - - if len(rows) == 0 { - // if no model is found - // fmt.Println("No model(s) found") - whiteBoardPrinter.Println("No model(s) found") - return nil - } - - if cmd.Flag("count").Value.String() == "true" { - // fmt.Println("Total number of models: ", len(rows)) - whiteBoardPrinter.Println("Total number of models: ", len(rows)) - return nil - } - - if cmd.Flags().Changed("page") { - utils.PrintToTable(header, rows) - } else { - err := utils.HandlePagination(maxRowsPerPage, "models", rows, header) - if err != nil { - utils.Log.Error(err) - return err - } - } - - return nil - }, -} - -// represents the mesheryctl exp model view [model-name] subcommand. -var viewModelCmd = &cobra.Command{ - Use: "view", - Short: "view model", - Long: "view a model queried by its name", - Example: ` -// View current provider -mesheryctl exp model view [model-name] - `, - PreRunE: func(cmd *cobra.Command, args []string) error { - //Check prerequisite - - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - return err - } - err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) - if err != nil { - return err - } - ctx, err := mctlCfg.GetCurrentContext() - if err != nil { - return err - } - err = ctx.ValidateVersion() - if err != nil { - return err - } - return nil - }, - Args: func(_ *cobra.Command, args []string) error { - const errMsg = "Usage: mesheryctl exp model view [model-name]\nRun 'mesheryctl exp model view --help' to see detailed help message" - if len(args) == 0 { - return fmt.Errorf("model name isn't specified\n\n%v", errMsg) - } else if len(args) > 1 { - return fmt.Errorf("too many arguments\n\n%v", errMsg) - } - return nil - }, - RunE: func(cmd *cobra.Command, args []string) error { - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - log.Fatalln(err, "error processing config") - } - - baseUrl := mctlCfg.GetBaseMesheryURL() - model := args[0] - - url := fmt.Sprintf("%s/api/meshmodels/models/%s?pagesize=all", baseUrl, model) - req, err := utils.NewRequest(http.MethodGet, url, nil) - if err != nil { - utils.Log.Error(err) - return err - } - - resp, err := utils.MakeRequest(req) - if err != nil { - utils.Log.Error(err) - return err - } - - // defers the closing of the response body after its use, ensuring that the resources are properly released. - defer resp.Body.Close() - - data, err := io.ReadAll(resp.Body) - if err != nil { - utils.Log.Error(err) - return err - } - - modelsResponse := &models.MeshmodelsAPIResponse{} - err = json.Unmarshal(data, modelsResponse) - if err != nil { - utils.Log.Error(err) - return err - } - - var selectedModel v1beta1.Model - - if modelsResponse.Count == 0 { - fmt.Println("No model(s) found for the given name ", model) - return nil - } else if modelsResponse.Count == 1 { - selectedModel = modelsResponse.Models[0] - } else { - selectedModel = selectModelPrompt(modelsResponse.Models) - } - - var output []byte - - // user may pass flag in lower or upper case but we have to keep it lower - // in order to make it consistent while checking output format - outFormatFlag = strings.ToLower(outFormatFlag) - if outFormatFlag == "yaml" { - if output, err = yaml.Marshal(selectedModel); err != nil { - return errors.Wrap(err, "failed to format output in YAML") - } - fmt.Print(string(output)) - } else if outFormatFlag == "json" { - return outputJson(selectedModel) - } else { - return errors.New("output-format choice invalid, use [json|yaml]") - } - - return nil - }, -} - -// represents the mesheryctl exp model search [query-text] subcommand. -var searchModelCmd = &cobra.Command{ - Use: "search", - Short: "search models", - Long: "search a models by search string", - Example: ` -// View current provider -mesheryctl exp model search [query-text] - `, - PreRunE: func(cmd *cobra.Command, args []string) error { - //Check prerequisite - - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - return err - } - err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) - if err != nil { - return err - } - ctx, err := mctlCfg.GetCurrentContext() - if err != nil { - return err - } - err = ctx.ValidateVersion() - if err != nil { - return err - } - return nil - }, - Args: func(_ *cobra.Command, args []string) error { - const errMsg = "Usage: mesheryctl exp model search [query-text]\nRun 'mesheryctl exp model search --help' to see detailed help message" - if len(args) == 0 { - return utils.ErrInvalidArgument(errors.New("Please provide a model name. " + errMsg)) - } - return nil - }, - RunE: func(cmd *cobra.Command, args []string) error { - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - log.Fatalln(err, "error processing config") - } - - baseUrl := mctlCfg.GetBaseMesheryURL() - queryText := args[0] - - url := fmt.Sprintf("%s/api/meshmodels/models?search=%s&pagesize=all", baseUrl, queryText) - req, err := utils.NewRequest(http.MethodGet, url, nil) - if err != nil { - utils.Log.Error(err) - return err - } - - resp, err := utils.MakeRequest(req) - if err != nil { - utils.Log.Error(err) - return err - } - - // defers the closing of the response body after its use, ensuring that the resources are properly released. - defer resp.Body.Close() - - data, err := io.ReadAll(resp.Body) - if err != nil { - utils.Log.Error(err) - return err - } - - modelsResponse := &models.MeshmodelsAPIResponse{} - err = json.Unmarshal(data, modelsResponse) - if err != nil { - utils.Log.Error(err) - return err - } - - header := []string{"Model", "Category", "Version"} - rows := [][]string{} - - for _, model := range modelsResponse.Models { - if len(model.DisplayName) > 0 { - rows = append(rows, []string{model.Name, model.Category.Name, model.Version}) - } - } - - if len(rows) == 0 { - // if no model is found - // fmt.Println("No model(s) found") - whiteBoardPrinter.Println("No model(s) found") - return nil - } else { - utils.PrintToTable(header, rows) - } - - return nil - }, -} - -// ModelCmd represents the mesheryctl exp model command -var ModelCmd = &cobra.Command{ - Use: "model", - Short: "View list of models and detail of models", - Long: "View list of models and detailed information of a specific model", - Example: ` -// To view list of components -mesheryctl exp model list - -// To view a specific model -mesheryctl exp model view [model-name] - `, - PreRunE: func(cmd *cobra.Command, args []string) error { - //Check prerequisite - - mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - return err - } - err = utils.IsServerRunning(mctlCfg.GetBaseMesheryURL()) - if err != nil { - return err - } - ctx, err := mctlCfg.GetCurrentContext() - if err != nil { - return err - } - err = ctx.ValidateVersion() - if err != nil { - return err - } - return nil - }, - Args: func(cmd *cobra.Command, args []string) error { - if len(args) == 0 { - if err := cmd.Usage(); err != nil { - return err - } - return utils.ErrInvalidArgument(errors.New("please provide a subcommand")) - } - return nil - }, - RunE: func(cmd *cobra.Command, args []string) error { - if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { - return errors.New(utils.SystemModelSubError(fmt.Sprintf("'%s' is an invalid subcommand. Please provide required options from [view]. Use 'mesheryctl exp model --help' to display usage guide.\n", args[0]), "model")) - } - _, err := config.GetMesheryCtl(viper.GetViper()) - if err != nil { - log.Fatalln(err, "error processing config") - } - err = viewProviderCmd.RunE(cmd, args) - if err != nil { - return err - } - err = cmd.Usage() - if err != nil { - return err - } - return nil - }, -} - -func init() { - listModelCmd.Flags().IntVarP(&pageNumberFlag, "page", "p", 1, "(optional) List next set of models with --page (default = 1)") - listModelCmd.Flags().BoolP("count", "c", false, "(optional) Get the number of models in total") - viewModelCmd.Flags().StringVarP(&outFormatFlag, "output-format", "o", "yaml", "(optional) format to display in [json|yaml]") - availableSubcommands = []*cobra.Command{listModelCmd, viewModelCmd, searchModelCmd} - ModelCmd.AddCommand(availableSubcommands...) -} - -// selectModelPrompt lets user to select a model if models are more than one -func selectModelPrompt(models []v1beta1.Model) v1beta1.Model { - modelArray := []v1beta1.Model{} - modelNames := []string{} - - modelArray = append(modelArray, models...) - - for _, model := range modelArray { - modelName := fmt.Sprintf("%s, version: %s", model.DisplayName, model.Version) - modelNames = append(modelNames, modelName) - } - - prompt := promptui.Select{ - Label: "Select a model", - Items: modelNames, - } - - for { - i, _, err := prompt.Run() - if err != nil { - continue - } - - return modelArray[i] - } -} - -func outputJson(model v1beta1.Model) error { - if err = prettifyJson(model); err != nil { - // if prettifyJson return error, marshal output in conventional way using json.MarshalIndent - // but it doesn't convert unicode to its corresponding HTML string (it is default behavior) - // e.g unicode representation of '&' will be printed as '\u0026' - if output, err := json.MarshalIndent(model, "", " "); err != nil { - return errors.Wrap(err, "failed to format output in JSON") - } else { - fmt.Print(string(output)) - } - } - return nil -} - -// prettifyJson takes a v1beta1.Model struct as input, marshals it into a nicely formatted JSON representation, -// and prints it to standard output with proper indentation and without escaping HTML entities. -func prettifyJson(model v1beta1.Model) error { - // Create a new JSON encoder that writes to the standard output (os.Stdout). - enc := json.NewEncoder(os.Stdout) - // Configure the JSON encoder settings. - // SetEscapeHTML(false) prevents special characters like '<', '>', and '&' from being escaped to their HTML entities. - enc.SetEscapeHTML(false) - enc.SetIndent("", " ") - - // Any errors during the encoding process will be returned as an error. - return enc.Encode(model) -} diff --git a/mesheryctl/internal/cli/root/system/model_test.go b/mesheryctl/internal/cli/root/system/model_test.go deleted file mode 100644 index 9b140a34dd3..00000000000 --- a/mesheryctl/internal/cli/root/system/model_test.go +++ /dev/null @@ -1 +0,0 @@ -package system diff --git a/mesheryctl/internal/cli/root/system/system.go b/mesheryctl/internal/cli/root/system/system.go index 0077d893750..81094d82fed 100644 --- a/mesheryctl/internal/cli/root/system/system.go +++ b/mesheryctl/internal/cli/root/system/system.go @@ -16,7 +16,6 @@ package system import ( "fmt" - config "github.com/layer5io/meshery/mesheryctl/internal/cli/root/config" "github.com/layer5io/meshery/mesheryctl/pkg/utils" @@ -72,7 +71,6 @@ func init() { logoutCmd, tokenCmd, dashboardCmd, - // ModelCmd, } // --context flag to temporarily change context. This is global to all system commands SystemCmd.PersistentFlags().StringVarP(&tempContext, "context", "c", "", "(optional) temporarily change the current context.") From 12f7d4ebe477fc8fe5d154eac41865d4f82e597c Mon Sep 17 00:00:00 2001 From: Lee Calcote Date: Thu, 6 Jun 2024 15:57:30 -0500 Subject: [PATCH 2/2] update docs Signed-off-by: Lee Calcote --- docs/_data/mesheryctlcommands/cmds.yml | 14 +++++++++++++- .../reference/mesheryctl/mesheryctl-completion.md | 2 +- .../mesheryctl/mesheryctl-components-list.md | 2 +- .../mesheryctl/mesheryctl-components-search.md | 2 +- .../mesheryctl/mesheryctl-components-view.md | 2 +- .../reference/mesheryctl/mesheryctl-components.md | 2 +- .../mesheryctl-exp-connections-delete.md | 2 +- .../mesheryctl/mesheryctl-exp-connections-list.md | 2 +- .../mesheryctl/mesheryctl-exp-connections.md | 2 +- .../mesheryctl-exp-environment-create.md | 2 +- .../mesheryctl-exp-environment-delete.md | 2 +- .../mesheryctl/mesheryctl-exp-environment-list.md | 2 +- .../mesheryctl/mesheryctl-exp-environment-view.md | 2 +- .../mesheryctl/mesheryctl-exp-environment.md | 2 +- .../mesheryctl-exp-relationship-generate.md | 2 +- .../mesheryctl/mesheryctl-exp-relationship-view.md | 2 +- .../mesheryctl/mesheryctl-exp-relationship.md | 2 +- .../mesheryctl/mesheryctl-exp-workspace-create.md | 2 +- .../mesheryctl/mesheryctl-exp-workspace-list.md | 2 +- .../mesheryctl/mesheryctl-exp-workspace.md | 2 +- docs/pages/reference/mesheryctl/mesheryctl-exp.md | 2 +- .../mesheryctl/mesheryctl-filter-delete.md | 2 +- .../mesheryctl/mesheryctl-filter-import.md | 2 +- .../reference/mesheryctl/mesheryctl-filter-list.md | 2 +- .../reference/mesheryctl/mesheryctl-filter-view.md | 2 +- .../reference/mesheryctl/mesheryctl-filter.md | 2 +- .../reference/mesheryctl/mesheryctl-mesh-deploy.md | 2 +- .../reference/mesheryctl/mesheryctl-mesh-remove.md | 2 +- .../mesheryctl/mesheryctl-mesh-validate.md | 2 +- docs/pages/reference/mesheryctl/mesheryctl-mesh.md | 2 +- .../reference/mesheryctl/mesheryctl-model-list.md | 8 ++++---- .../mesheryctl/mesheryctl-model-search.md | 6 +++--- .../reference/mesheryctl/mesheryctl-model-view.md | 6 +++--- .../pages/reference/mesheryctl/mesheryctl-model.md | 6 +++--- .../mesheryctl/mesheryctl-pattern-apply.md | 2 +- .../mesheryctl/mesheryctl-pattern-delete.md | 2 +- .../mesheryctl/mesheryctl-pattern-import.md | 2 +- .../mesheryctl/mesheryctl-pattern-list.md | 2 +- .../mesheryctl/mesheryctl-pattern-offboard.md | 2 +- .../mesheryctl/mesheryctl-pattern-onboard.md | 2 +- .../mesheryctl/mesheryctl-pattern-view.md | 2 +- .../reference/mesheryctl/mesheryctl-pattern.md | 2 +- .../reference/mesheryctl/mesheryctl-perf-apply.md | 2 +- .../mesheryctl/mesheryctl-perf-profile.md | 2 +- .../reference/mesheryctl/mesheryctl-perf-result.md | 2 +- docs/pages/reference/mesheryctl/mesheryctl-perf.md | 2 +- .../mesheryctl/mesheryctl-registry-generate.md | 2 +- .../mesheryctl/mesheryctl-registry-publish.md | 2 +- .../mesheryctl/mesheryctl-registry-update.md | 2 +- .../reference/mesheryctl/mesheryctl-registry.md | 2 +- .../mesheryctl/mesheryctl-system-channel-set.md | 2 +- .../mesheryctl/mesheryctl-system-channel-switch.md | 2 +- .../mesheryctl/mesheryctl-system-channel-view.md | 2 +- .../mesheryctl/mesheryctl-system-channel.md | 2 +- .../mesheryctl/mesheryctl-system-check.md | 2 +- .../mesheryctl/mesheryctl-system-config-aks.md | 2 +- .../mesheryctl/mesheryctl-system-config-eks.md | 2 +- .../mesheryctl/mesheryctl-system-config-gke.md | 2 +- .../mesheryctl-system-config-minikube.md | 2 +- .../mesheryctl/mesheryctl-system-config.md | 2 +- .../mesheryctl/mesheryctl-system-context-create.md | 2 +- .../mesheryctl/mesheryctl-system-context-delete.md | 2 +- .../mesheryctl/mesheryctl-system-context-list.md | 2 +- .../mesheryctl/mesheryctl-system-context-switch.md | 2 +- .../mesheryctl/mesheryctl-system-context-view.md | 2 +- .../mesheryctl/mesheryctl-system-context.md | 2 +- .../mesheryctl/mesheryctl-system-dashboard.md | 2 +- .../mesheryctl/mesheryctl-system-login.md | 2 +- .../mesheryctl/mesheryctl-system-logout.md | 2 +- .../reference/mesheryctl/mesheryctl-system-logs.md | 2 +- .../mesheryctl/mesheryctl-system-provider-list.md | 2 +- .../mesheryctl/mesheryctl-system-provider-reset.md | 2 +- .../mesheryctl/mesheryctl-system-provider-set.md | 2 +- .../mesheryctl-system-provider-switch.md | 2 +- .../mesheryctl/mesheryctl-system-provider-view.md | 2 +- .../mesheryctl/mesheryctl-system-provider.md | 2 +- .../mesheryctl/mesheryctl-system-reset.md | 2 +- .../mesheryctl/mesheryctl-system-restart.md | 2 +- .../mesheryctl/mesheryctl-system-start.md | 2 +- .../mesheryctl/mesheryctl-system-status.md | 2 +- .../reference/mesheryctl/mesheryctl-system-stop.md | 2 +- .../mesheryctl/mesheryctl-system-token-create.md | 2 +- .../mesheryctl/mesheryctl-system-token-delete.md | 2 +- .../mesheryctl/mesheryctl-system-token-list.md | 2 +- .../mesheryctl/mesheryctl-system-token-set.md | 2 +- .../mesheryctl/mesheryctl-system-token-view.md | 2 +- .../mesheryctl/mesheryctl-system-token.md | 2 +- .../mesheryctl/mesheryctl-system-update.md | 2 +- .../reference/mesheryctl/mesheryctl-system.md | 2 +- .../reference/mesheryctl/mesheryctl-version.md | 2 +- docs/pages/reference/mesheryctl/mesheryctl.md | 2 +- 91 files changed, 112 insertions(+), 100 deletions(-) diff --git a/docs/_data/mesheryctlcommands/cmds.yml b/docs/_data/mesheryctlcommands/cmds.yml index e79ec7218f2..132a0fbccfe 100644 --- a/docs/_data/mesheryctlcommands/cmds.yml +++ b/docs/_data/mesheryctlcommands/cmds.yml @@ -841,7 +841,19 @@ registry: spreadsheet_id: name: --spreadsheet-id description: id of the spreadsheet to download - +model: + name: model + description: + usage: mesheryctl model [command] [flags] + flags: + help: + name: --help, -h + description: help for model + usage: mesheryctl model --help + example: mesheryctl model --help + subcommands: + list: + name: list exp: name: exp description: Experimental features diff --git a/docs/pages/reference/mesheryctl/mesheryctl-completion.md b/docs/pages/reference/mesheryctl/mesheryctl-completion.md index bfcb5944aed..70549bfa2f8 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-completion.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-completion.md @@ -128,7 +128,7 @@ mesheryctl completion fish > ~/.config/fish/completions/mesheryctl.fish
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-components-list.md b/docs/pages/reference/mesheryctl/mesheryctl-components-list.md index 1f3b85a69ff..368bfd9f556 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-components-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-components-list.md @@ -62,7 +62,7 @@ mesheryctl exp components list --page 2
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-components-search.md b/docs/pages/reference/mesheryctl/mesheryctl-components-search.md index cef4a742877..4a1ea68d585 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-components-search.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-components-search.md @@ -47,7 +47,7 @@ mesheryctl exp components search [query-text]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-components-view.md b/docs/pages/reference/mesheryctl/mesheryctl-components-view.md index d95872c0f1d..c9bc78643f3 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-components-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-components-view.md @@ -49,7 +49,7 @@ mesheryctl exp components view [component-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-components.md b/docs/pages/reference/mesheryctl/mesheryctl-components.md index 82ab9307102..4168bfcf605 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-components.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-components.md @@ -72,7 +72,7 @@ mesheryctl exp components search [component-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-delete.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-delete.md index 2dada78cb9d..97208b56f29 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-delete.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-delete.md @@ -49,7 +49,7 @@ mesheryctl exp connections delete [connection_id]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-list.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-list.md index c377bc07403..3cc82d0c8d8 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-connections-list.md @@ -57,7 +57,7 @@ mesheryctl exp connections list --page 2
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-connections.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-connections.md index 287b6316537..6fb90d5c48f 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-connections.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-connections.md @@ -47,7 +47,7 @@ mesheryctl exp connections list
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-create.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-create.md index 7a272bf1922..af9a10c18ef 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-create.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-create.md @@ -58,7 +58,7 @@ https://docs.layer5.io/cloud/spaces/environments/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-delete.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-delete.md index fee8ef1b692..c14849a8fb0 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-delete.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-delete.md @@ -55,7 +55,7 @@ https://docs.layer5.io/cloud/spaces/environments/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-list.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-list.md index 086b2866f0c..928df9baae4 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-list.md @@ -56,7 +56,7 @@ https://docs.layer5.io/cloud/spaces/environments/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-view.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-view.md index 2a6ad7c66b1..15858b798ce 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment-view.md @@ -49,7 +49,7 @@ mesheryctl exp environment view --orgID [orgId]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment.md index 1dd9ead0eec..ce48abf7305 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-environment.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-environment.md @@ -63,7 +63,7 @@ https://docs.layer5.io/cloud/spaces/environments/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-generate.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-generate.md index 0b121f4137e..3c797a7895c 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-generate.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-generate.md @@ -54,7 +54,7 @@ mesheryctl exp relationship generate [flags]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-view.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-view.md index 754116d6357..ae85da2cc1f 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship-view.md @@ -48,7 +48,7 @@ mesheryctl exp relationship view [model-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship.md index f0c5bf85189..359e31e443d 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-relationship.md @@ -55,7 +55,7 @@ mesheryctl exp relationships view [model-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-create.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-create.md index 92088acad6d..622d4a2c1e2 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-create.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-create.md @@ -58,7 +58,7 @@ https://docs.layer5.io/cloud/spaces/workspaces/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-list.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-list.md index ba92fe0119f..640f7c4efa6 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace-list.md @@ -56,7 +56,7 @@ https://docs.layer5.io/cloud/spaces/workspaces/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace.md b/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace.md index 85708de2e59..0d056a43643 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp-workspace.md @@ -63,7 +63,7 @@ https://docs.layer5.io/cloud/spaces/workspaces/
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-exp.md b/docs/pages/reference/mesheryctl/mesheryctl-exp.md index 70be73d9520..8db5b1116f6 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-exp.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-exp.md @@ -37,7 +37,7 @@ mesheryctl exp [flags]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-filter-delete.md b/docs/pages/reference/mesheryctl/mesheryctl-filter-delete.md index 7fdeaf0b8b2..d3d4bb94cd6 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-filter-delete.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-filter-delete.md @@ -48,7 +48,7 @@ mesheryctl filter delete [filter-name | ID]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-filter-import.md b/docs/pages/reference/mesheryctl/mesheryctl-filter-import.md index b749d1bb842..aae873a3a9d 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-filter-import.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-filter-import.md @@ -75,7 +75,7 @@ mesheryctl filter import /path/to/filter.wasm --name [string]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-filter-list.md b/docs/pages/reference/mesheryctl/mesheryctl-filter-list.md index 07c8c85e9ef..101d1a9be69 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-filter-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-filter-list.md @@ -65,7 +65,7 @@ mesheryctl filter list 'Test Filter' (maximum 25 filters)
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-filter-view.md b/docs/pages/reference/mesheryctl/mesheryctl-filter-view.md index 1b1eecf0bd6..2025bc5165a 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-filter-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-filter-view.md @@ -58,7 +58,7 @@ mesheryctl filter view --all
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-filter.md b/docs/pages/reference/mesheryctl/mesheryctl-filter.md index 78038782d7c..233e9df6927 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-filter.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-filter.md @@ -49,7 +49,7 @@ mesheryctl filter [subcommands]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-mesh-deploy.md b/docs/pages/reference/mesheryctl/mesheryctl-mesh-deploy.md index c252737aeca..87c4f2fb3c2 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-mesh-deploy.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-mesh-deploy.md @@ -81,7 +81,7 @@ mesheryctl mesh deploy linkerd --watch
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-mesh-remove.md b/docs/pages/reference/mesheryctl/mesheryctl-mesh-remove.md index c89f1b18c84..94a1a427d68 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-mesh-remove.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-mesh-remove.md @@ -63,7 +63,7 @@ mesheryctl mesh remove linkerd --namespace linkerd-ns
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token for authenticating to Meshery API -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-mesh-validate.md b/docs/pages/reference/mesheryctl/mesheryctl-mesh-validate.md index a7582ede9e0..2a2134b2ea7 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-mesh-validate.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-mesh-validate.md @@ -59,7 +59,7 @@ mesheryctl mesh validate istio --adapter meshery-istio --spec smi
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-mesh.md b/docs/pages/reference/mesheryctl/mesheryctl-mesh.md index 6c41e64cb7a..fbe7f2c6ada 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-mesh.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-mesh.md @@ -32,7 +32,7 @@ Provisioning, configuration, and on-going operational management of cloud and cl
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-model-list.md b/docs/pages/reference/mesheryctl/mesheryctl-model-list.md index 0b51b503475..9bf4568cc38 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-model-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model-list.md @@ -6,8 +6,8 @@ redirect_from: reference/mesheryctl/model/list/ type: reference display-title: "false" language: en -command: exp -subcommand: model +command: model +subcommand: list --- # mesheryctl model list @@ -53,7 +53,7 @@ mesheryctl model list --page 2
 
- -c, --count (optional) Get the number of models in total + --count (optional) Get the number of models in total -h, --help help for list -p, --page int (optional) List next set of models with --page (default = 1) (default 1) @@ -64,7 +64,7 @@ mesheryctl model list --page 2
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-model-search.md b/docs/pages/reference/mesheryctl/mesheryctl-model-search.md index cc29021e860..15552771bbc 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-model-search.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model-search.md @@ -6,8 +6,8 @@ redirect_from: reference/mesheryctl/model/search/ type: reference display-title: "false" language: en -command: exp -subcommand: model +command: model +subcommand: search --- # mesheryctl model search @@ -47,7 +47,7 @@ mesheryctl model search [query-text]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-model-view.md b/docs/pages/reference/mesheryctl/mesheryctl-model-view.md index b4ff6774988..c8d35e1c363 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-model-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model-view.md @@ -6,8 +6,8 @@ redirect_from: reference/mesheryctl/model/view/ type: reference display-title: "false" language: en -command: exp -subcommand: model +command: model +subcommand: view --- # mesheryctl model view @@ -48,7 +48,7 @@ mesheryctl model view [model-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-model.md b/docs/pages/reference/mesheryctl/mesheryctl-model.md index 363074ed72b..9450dace226 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-model.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-model.md @@ -6,8 +6,8 @@ redirect_from: reference/mesheryctl/model/ type: reference display-title: "false" language: en -command: exp -subcommand: model +command: model +subcommand: nil --- # mesheryctl model @@ -55,7 +55,7 @@ mesheryctl model view [model-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-apply.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-apply.md index a861c7d493d..8f7b39ac526 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-apply.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-apply.md @@ -57,7 +57,7 @@ mesheryctl pattern apply [pattern-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-delete.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-delete.md index a5ab94f1724..906a8c51f90 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-delete.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-delete.md @@ -48,7 +48,7 @@ mesheryctl pattern delete [file | URL]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-import.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-import.md index b4f291be70a..05f352dee1b 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-import.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-import.md @@ -58,7 +58,7 @@ mesheryctl pattern import -f [file/URL] -s [source-type] -n [name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-list.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-list.md index b29860ef955..1f6de946a25 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-list.md @@ -48,7 +48,7 @@ mesheryctl pattern list
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-offboard.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-offboard.md index cdc4d4af9c6..0efd00949dc 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-offboard.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-offboard.md @@ -48,7 +48,7 @@ mesheryctl pattern offboard -f [filepath]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-onboard.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-onboard.md index 1a3013f430e..187040ea149 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-onboard.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-onboard.md @@ -57,7 +57,7 @@ mesheryctl pattern onboard -f ./pattern.yml -s "Kubernetes Manifest"
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern-view.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern-view.md index c119e6eb2d2..cb918ae6c40 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern-view.md @@ -49,7 +49,7 @@ mesheryctl pattern view [pattern-name | ID]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -t, --token string Path to token file default from current context -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-pattern.md b/docs/pages/reference/mesheryctl/mesheryctl-pattern.md index 8d7d4967bee..ce6653cbeeb 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-pattern.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-pattern.md @@ -73,7 +73,7 @@ mesheryctl pattern list
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-perf-apply.md b/docs/pages/reference/mesheryctl/mesheryctl-perf-apply.md index e870dcbac74..d16cd4d334a 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-perf-apply.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-perf-apply.md @@ -164,7 +164,7 @@ mesheryctl perf apply meshery-profile-new --url "https://google.com" --load-gene
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -o, --output-format string (optional) format to display in [json|yaml] -t, --token string (required) Path to meshery auth config -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-perf-profile.md b/docs/pages/reference/mesheryctl/mesheryctl-perf-profile.md index f5f36484784..7370270f30e 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-perf-profile.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-perf-profile.md @@ -65,7 +65,7 @@ mesheryctl perf profile test --view
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -o, --output-format string (optional) format to display in [json|yaml] -t, --token string (required) Path to meshery auth config -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-perf-result.md b/docs/pages/reference/mesheryctl/mesheryctl-perf-result.md index 730b680a238..f07af5b4d6a 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-perf-result.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-perf-result.md @@ -65,7 +65,7 @@ mesheryctl perf result saturday-profile --view
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -o, --output-format string (optional) format to display in [json|yaml] -t, --token string (required) Path to meshery auth config -v, --verbose verbose output diff --git a/docs/pages/reference/mesheryctl/mesheryctl-perf.md b/docs/pages/reference/mesheryctl/mesheryctl-perf.md index c9859cd6259..febee28e7ce 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-perf.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-perf.md @@ -82,7 +82,7 @@ mesheryctl perf result -o yaml
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-registry-generate.md b/docs/pages/reference/mesheryctl/mesheryctl-registry-generate.md index f2a0a2e75bb..c969b3a3fa8 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-registry-generate.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-registry-generate.md @@ -71,7 +71,7 @@ mesheryctl registry generate --registrant-def [path to connection definition] --
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-registry-publish.md b/docs/pages/reference/mesheryctl/mesheryctl-registry-publish.md index f7c12c330d7..209096bd5b6 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-registry-publish.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-registry-publish.md @@ -111,7 +111,7 @@ mesheryctl registry publish website $CRED 1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdwiz
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-registry-update.md b/docs/pages/reference/mesheryctl/mesheryctl-registry-update.md index 44ba201cb0a..fb2ff8bc24b 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-registry-update.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-registry-update.md @@ -58,7 +58,7 @@ mesheryctl registry update --spreadsheet-id 1DZHnzxYWOlJ69Oguz4LkRVTFM79kC2tuvdw
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-registry.md b/docs/pages/reference/mesheryctl/mesheryctl-registry.md index bdcb1c3845f..304e4185d0e 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-registry.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-registry.md @@ -46,7 +46,7 @@ mesheryctl registry [flags]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-channel-set.md b/docs/pages/reference/mesheryctl/mesheryctl-system-channel-set.md index 06bf6c9fba7..6c192477f21 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-channel-set.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-channel-set.md @@ -47,7 +47,7 @@ mesheryctl system channel set [stable|stable-version|edge|edge-version]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-channel-switch.md b/docs/pages/reference/mesheryctl/mesheryctl-system-channel-switch.md index a2a11b09c7a..26562e748eb 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-channel-switch.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-channel-switch.md @@ -47,7 +47,7 @@ mesheryctl system channel switch [stable|stable-version|edge|edge-version]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-channel-view.md b/docs/pages/reference/mesheryctl/mesheryctl-system-channel-view.md index be358ee628f..19dbb813a10 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-channel-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-channel-view.md @@ -48,7 +48,7 @@ mesheryctl system channel view
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-channel.md b/docs/pages/reference/mesheryctl/mesheryctl-system-channel.md index 3ed978310be..9288c48ad72 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-channel.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-channel.md @@ -79,7 +79,7 @@ mesheryctl system channel switch [stable|stable-version|edge|edge-version]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-check.md b/docs/pages/reference/mesheryctl/mesheryctl-system-check.md index 2989e517d04..303783a4f1f 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-check.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-check.md @@ -93,7 +93,7 @@ mesheryctl system check --operator
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-config-aks.md b/docs/pages/reference/mesheryctl/mesheryctl-system-config-aks.md index df7592377f3..75e1f134389 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-config-aks.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-config-aks.md @@ -56,7 +56,7 @@ mesheryctl system config aks
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-config-eks.md b/docs/pages/reference/mesheryctl/mesheryctl-system-config-eks.md index 2b1214144c8..317698c4b45 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-config-eks.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-config-eks.md @@ -56,7 +56,7 @@ mesheryctl system config eks
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-config-gke.md b/docs/pages/reference/mesheryctl/mesheryctl-system-config-gke.md index 4e4c22bb259..33911d48c37 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-config-gke.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-config-gke.md @@ -56,7 +56,7 @@ mesheryctl system config gke
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-config-minikube.md b/docs/pages/reference/mesheryctl/mesheryctl-system-config-minikube.md index 53a928ec85d..d252261c2c7 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-config-minikube.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-config-minikube.md @@ -56,7 +56,7 @@ mesheryctl system config minikube
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-config.md b/docs/pages/reference/mesheryctl/mesheryctl-system-config.md index fabb4319b2f..df3e3190a66 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-config.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-config.md @@ -55,7 +55,7 @@ mesheryctl system config --token "~/Downloads/auth.json"
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-context-create.md b/docs/pages/reference/mesheryctl/mesheryctl-system-context-create.md index cbe03877e22..70ba7af4212 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-context-create.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-context-create.md @@ -60,7 +60,7 @@ mesheryctl system context create context-name --components meshery-nsm --platfor
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-context-delete.md b/docs/pages/reference/mesheryctl/mesheryctl-system-context-delete.md index dffa09b2124..cf6db2a3455 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-context-delete.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-context-delete.md @@ -48,7 +48,7 @@ mesheryctl system context delete [context name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-context-list.md b/docs/pages/reference/mesheryctl/mesheryctl-system-context-list.md index eb1ded78164..5c13239afaf 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-context-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-context-list.md @@ -47,7 +47,7 @@ mesheryctl system context list
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-context-switch.md b/docs/pages/reference/mesheryctl/mesheryctl-system-context-switch.md index c15a3ad8d22..5c55d436afd 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-context-switch.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-context-switch.md @@ -47,7 +47,7 @@ mesheryctl system context switch sample
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-context-view.md b/docs/pages/reference/mesheryctl/mesheryctl-system-context-view.md index 7edf0610574..cb4e6b6bfbc 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-context-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-context-view.md @@ -73,7 +73,7 @@ mesheryctl system context view --all
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-context.md b/docs/pages/reference/mesheryctl/mesheryctl-system-context.md index 0e1a0ab42bf..43124a32513 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-context.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-context.md @@ -48,7 +48,7 @@ mesheryctl system context
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-dashboard.md b/docs/pages/reference/mesheryctl/mesheryctl-system-dashboard.md index 6677905e311..2d4a931bef5 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-dashboard.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-dashboard.md @@ -71,7 +71,7 @@ mesheryctl system dashboard --skip-browser
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-login.md b/docs/pages/reference/mesheryctl/mesheryctl-system-login.md index 886f79b17d2..48dac1d3b25 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-login.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-login.md @@ -59,7 +59,7 @@ mesheryctl system login -p Meshery
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-logout.md b/docs/pages/reference/mesheryctl/mesheryctl-system-logout.md index a18f8229c7a..0764698ed49 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-logout.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-logout.md @@ -50,7 +50,7 @@ mesheryctl system logout
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-logs.md b/docs/pages/reference/mesheryctl/mesheryctl-system-logs.md index 732da967ac5..df98eeff111 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-logs.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-logs.md @@ -65,7 +65,7 @@ mesheryctl system logs meshery-istio
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-list.md b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-list.md index 70708006a6f..0e4cf009c0f 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-list.md @@ -47,7 +47,7 @@ mesheryctl system provider list
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-reset.md b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-reset.md index 51b3665dcb1..8273c61c935 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-reset.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-reset.md @@ -47,7 +47,7 @@ mesheryctl system provider reset
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-set.md b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-set.md index b98b1458ccc..893198f0922 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-set.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-set.md @@ -48,7 +48,7 @@ mesheryctl system provider set [provider]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-switch.md b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-switch.md index 47f259679fa..34291819887 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-switch.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-switch.md @@ -47,7 +47,7 @@ mesheryctl system provider switch [provider]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-view.md b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-view.md index bf0c878cfc3..8d37943c704 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-provider-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-provider-view.md @@ -48,7 +48,7 @@ mesheryctl system provider view
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-provider.md b/docs/pages/reference/mesheryctl/mesheryctl-system-provider.md index 1c755fee64a..84f6da84234 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-provider.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-provider.md @@ -79,7 +79,7 @@ mesheryctl system provider reset
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-reset.md b/docs/pages/reference/mesheryctl/mesheryctl-system-reset.md index 87054b96d74..fbdc973aae5 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-reset.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-reset.md @@ -47,7 +47,7 @@ mesheryctl system reset
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-restart.md b/docs/pages/reference/mesheryctl/mesheryctl-system-restart.md index 5075c38b440..8167887c9bd 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-restart.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-restart.md @@ -57,7 +57,7 @@ mesheryctl system restart --skip-update
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-start.md b/docs/pages/reference/mesheryctl/mesheryctl-system-start.md index e25efb15471..5221da59d30 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-start.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-start.md @@ -92,7 +92,7 @@ mesheryctl system start --provider Meshery
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-status.md b/docs/pages/reference/mesheryctl/mesheryctl-system-status.md index 39cbfad8f3d..b0f4eb3025b 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-status.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-status.md @@ -56,7 +56,7 @@ mesheryctl system status --verbose
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-stop.md b/docs/pages/reference/mesheryctl/mesheryctl-system-stop.md index 8ea2d80949d..3f671e2cd48 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-stop.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-stop.md @@ -74,7 +74,7 @@ mesheryctl system stop --force
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-token-create.md b/docs/pages/reference/mesheryctl/mesheryctl-system-token-create.md index a9564fc9081..b657d7e085d 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-token-create.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-token-create.md @@ -62,7 +62,7 @@ mesheryctl system token create [token-name] -f [token-path] --set
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-token-delete.md b/docs/pages/reference/mesheryctl/mesheryctl-system-token-delete.md index 9f7caf25b97..0028ab533e2 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-token-delete.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-token-delete.md @@ -46,7 +46,7 @@ mesheryctl system token delete [token-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-token-list.md b/docs/pages/reference/mesheryctl/mesheryctl-system-token-list.md index c102f29b7f6..a16e69c88f6 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-token-list.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-token-list.md @@ -46,7 +46,7 @@ mesheryctl system token list
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-token-set.md b/docs/pages/reference/mesheryctl/mesheryctl-system-token-set.md index 90b47354df1..c13bbce21ac 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-token-set.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-token-set.md @@ -47,7 +47,7 @@ mesheryctl system token set [token-name]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-token-view.md b/docs/pages/reference/mesheryctl/mesheryctl-system-token-view.md index f6b7d912538..fd62dac953f 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-token-view.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-token-view.md @@ -54,7 +54,7 @@ mesheryctl system token view (show token of current context)
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-token.md b/docs/pages/reference/mesheryctl/mesheryctl-system-token.md index d45cae9f5a7..8eb143304b0 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-token.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-token.md @@ -38,7 +38,7 @@ mesheryctl system token [flags]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system-update.md b/docs/pages/reference/mesheryctl/mesheryctl-system-update.md index 0e38f4790ea..62795f51b7b 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system-update.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system-update.md @@ -56,7 +56,7 @@ mesheryctl system update --skip-reset
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts. diff --git a/docs/pages/reference/mesheryctl/mesheryctl-system.md b/docs/pages/reference/mesheryctl/mesheryctl-system.md index 27af7fef571..f3ea1e9f901 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-system.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-system.md @@ -39,7 +39,7 @@ mesheryctl system [flags]
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl-version.md b/docs/pages/reference/mesheryctl/mesheryctl-version.md index a5713ff759d..e4b887f4acb 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl-version.md +++ b/docs/pages/reference/mesheryctl/mesheryctl-version.md @@ -47,7 +47,7 @@ mesheryctl version
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -v, --verbose verbose output
diff --git a/docs/pages/reference/mesheryctl/mesheryctl.md b/docs/pages/reference/mesheryctl/mesheryctl.md index 3275c8b8047..b3eb843b801 100644 --- a/docs/pages/reference/mesheryctl/mesheryctl.md +++ b/docs/pages/reference/mesheryctl/mesheryctl.md @@ -62,7 +62,7 @@ mesheryctl -v [or] --verbose
 
- --config string path to config file (default "/home/runner/.meshery/config.yaml") + --config string path to config file (default "~/.meshery/config.yaml") -h, --help help for mesheryctl -v, --verbose verbose output