diff --git a/mesheryctl/internal/cli/root/registry/publish.go b/mesheryctl/internal/cli/root/registry/publish.go index 0505442c324..7dcb08739db 100644 --- a/mesheryctl/internal/cli/root/registry/publish.go +++ b/mesheryctl/internal/cli/root/registry/publish.go @@ -234,7 +234,10 @@ func init() { // publishCmd.Flags().StringVarP(&imgsOutputPath, "imgs-output-path", "p", "", "images output path") publishCmd.Flags().StringVarP(&outputFormat, "output-format", "o", "", "output format [md | mdx | js]") - publishCmd.MarkFlagRequired("output-format") + err := publishCmd.MarkFlagRequired("output-format") + if err != nil { + utils.Log.Error(err) + } // publishCmd.MarkFlagRequired("system") // publishCmd.MarkFlagRequired("google-sheet-credential") diff --git a/mesheryctl/pkg/utils/component.go b/mesheryctl/pkg/utils/component.go index 7493aba0dfa..34b9a809807 100644 --- a/mesheryctl/pkg/utils/component.go +++ b/mesheryctl/pkg/utils/component.go @@ -70,12 +70,11 @@ func (mch *ComponentCSVHelper) ParseComponentsSheet() error { return ErrFileRead(err) } - go func() error { + go func(){ err := csvReader.Parse(ch, errorChan) if err != nil { - return ErrFileRead(err) + errorChan <- err } - return nil }() for { diff --git a/mesheryctl/pkg/utils/model.go b/mesheryctl/pkg/utils/model.go index 95a2d9e4754..edaf53da168 100644 --- a/mesheryctl/pkg/utils/model.go +++ b/mesheryctl/pkg/utils/model.go @@ -95,12 +95,11 @@ func (mch *ModelCSVHelper) ParseModelsSheet() error { return ErrFileRead(err) } - go func() error { + go func(){ err := csvReader.Parse(ch, errorChan) if err != nil { - return ErrFileRead(err) + errorChan <- err } - return nil }() for { select {