Skip to content

Commit 6ebd04f

Browse files
committed
feat:update
1 parent 95ec82f commit 6ebd04f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/run/root.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func runFunction(cmd *cobra.Command, args []string) {
7878
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 31, err.Error(), 0x1B)
7979
return
8080
}
81-
fmt.Printf("服务已安装")
81+
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 32, "install success!", 0x1B)
8282
return
8383
}
8484

@@ -87,7 +87,7 @@ func runFunction(cmd *cobra.Command, args []string) {
8787
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 31, err.Error(), 0x1B)
8888
return
8989
}
90-
fmt.Printf("服务已卸载")
90+
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 32, "uninstall success!", 0x1B)
9191
return
9292
}
9393

@@ -96,7 +96,7 @@ func runFunction(cmd *cobra.Command, args []string) {
9696
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 31, err.Error(), 0x1B)
9797
return
9898
}
99-
fmt.Printf("服务已启动")
99+
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 32, "start success!", 0x1B)
100100
return
101101
}
102102

@@ -105,7 +105,7 @@ func runFunction(cmd *cobra.Command, args []string) {
105105
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 31, err.Error(), 0x1B)
106106
return
107107
}
108-
fmt.Printf("服务已关闭")
108+
fmt.Printf("%c[%d;%d;%dm%s%c[0m \n", 0x1B, 0, 40, 32, "stop success!", 0x1B)
109109
return
110110
}
111111
}

0 commit comments

Comments
 (0)