diff --git a/cmd/check.go b/cmd/check.go index e944200..861a452 100644 --- a/cmd/check.go +++ b/cmd/check.go @@ -19,10 +19,14 @@ type LocalServices struct { var checkCmd = &cobra.Command{ Use: "check", - Short: "check etc/service/registry auto version update or install.", + Short: " 批量检测微服务和配置并更新.", Run: func(cmd *cobra.Command, args []string) { + if len(args) != 1 { - fmt.Println("Please input the name of the microservice to be updated!") + fmt.Println("check sub command: etc/service/registry") + fmt.Println(" etc: 检测并更新本地已经安装的所有微服务的配置文件") + fmt.Println(" service: 检测并更新本地已经安装的所有微服务") + fmt.Println(" registry: 检测并更新Registry已经发布的所有微服务") return } diff --git a/cmd/install.go b/cmd/install.go index ecd7d0c..a8e6723 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -13,7 +13,7 @@ import ( var installCmd = &cobra.Command{ Use: "install", - Short: "install microservice.", + Short: " 安装一个微服务.", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { fmt.Println("Please input the name of the microservice to be installed!") diff --git a/cmd/ps.go b/cmd/ps.go index 31a3388..56c0582 100644 --- a/cmd/ps.go +++ b/cmd/ps.go @@ -47,7 +47,7 @@ type PsTable struct { var psCmd = &cobra.Command{ Use: "ps", - Short: "list restiry and local installed microservice.", + Short: "列表展示本地已经安装的微服务.", Run: func(cmd *cobra.Command, args []string) { psExecute() }, diff --git a/cmd/update.go b/cmd/update.go index b052721..ec50769 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -12,7 +12,7 @@ import ( var updateCmd = &cobra.Command{ Use: "update", - Short: "update microservice.", + Short: " 更新一个微服务至最新版本.", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { fmt.Println("Please input the name of the microservice to be updated!")