This commit is contained in:
david 2024-03-02 16:13:28 +08:00
parent 915a3d7ffc
commit fcf529cb8d
4 changed files with 9 additions and 5 deletions

View File

@ -19,10 +19,14 @@ type LocalServices struct {
var checkCmd = &cobra.Command{
Use: "check",
Short: "check etc/service/registry auto version update or install.",
Short: "<etc/service/registry> 批量检测微服务和配置并更新.",
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
}

View File

@ -13,7 +13,7 @@ import (
var installCmd = &cobra.Command{
Use: "install",
Short: "install microservice.",
Short: "<ServiceKey> 安装一个微服务.",
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
fmt.Println("Please input the name of the microservice to be installed!")

View File

@ -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()
},

View File

@ -12,7 +12,7 @@ import (
var updateCmd = &cobra.Command{
Use: "update",
Short: "update microservice.",
Short: "<ServiceKey> 更新一个微服务至最新版本.",
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
fmt.Println("Please input the name of the microservice to be updated!")