From 3a8f8f083cc154d57029879e0978f4300475fb68 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 2 Mar 2024 15:59:23 +0800 Subject: [PATCH] fix --- cmd/check.go | 2 +- cmd/root.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/check.go b/cmd/check.go index 14c9cdc..57b3f08 100644 --- a/cmd/check.go +++ b/cmd/check.go @@ -19,7 +19,7 @@ type LocalServices struct { var checkCmd = &cobra.Command{ Use: "check", - Short: "check microservice.", + Short: "check etc/service/registry auto version update or install.", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { fmt.Println("Please input the name of the microservice to be updated!") diff --git a/cmd/root.go b/cmd/root.go index cbb0b0f..85f956e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -16,13 +16,13 @@ func init() { // get os env. env.NewEnv() - psCmd.Flags().StringVarP(®istryUrl, "registry", "r", "", "registry url.") + rootCmd.Flags().StringVarP(®istryUrl, "registry", "r", "", "registry server url.") if registryUrl == "" { registryUrl = env.GetEnvDefault("BlocksMesh_Registry", "http://registry.apinb.com") } - rootCmd.AddCommand(psCmd, installCmd) + rootCmd.AddCommand(psCmd, installCmd, updateCmd, checkCmd) } var rootCmd = &cobra.Command{