From f8aa0f19782f2ad68e8d9f4b14064bb19aaf440f Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 17 Jun 2026 10:08:28 +0800 Subject: [PATCH] fix: #1342 --- cmd/intercmd.go | 2 +- cmd/version.go | 2 +- cmd/winsc_nonwindows.go | 2 +- cmd/winsc_windows.go | 2 +- main.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/intercmd.go b/cmd/intercmd.go index 900038a4..3281ca90 100644 --- a/cmd/intercmd.go +++ b/cmd/intercmd.go @@ -20,7 +20,7 @@ import ( func NewInternalCommand(app core.App) *cobra.Command { command := &cobra.Command{ Use: "intercmd", - Short: "[INTERNAL] Internal dedicated for Certimate", + Short: "[RESERVED] PLEASE DO NOT USE!", } command.AddCommand(internalCertApplyCommand(app)) diff --git a/cmd/version.go b/cmd/version.go index 77202809..8a95d211 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -13,7 +13,7 @@ import ( func NewVersionCommand(_ core.App) *cobra.Command { command := &cobra.Command{ Use: "version", - Short: "Print the version information", + Short: "Prints version information", Run: func(cmd *cobra.Command, args []string) { fmt.Printf("Certimate v%s\n", app.AppVersion) fmt.Printf("Build with %s on %s_%s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH) diff --git a/cmd/winsc_nonwindows.go b/cmd/winsc_nonwindows.go index 7908ee96..9baf441c 100644 --- a/cmd/winsc_nonwindows.go +++ b/cmd/winsc_nonwindows.go @@ -11,7 +11,7 @@ import ( func NewWinscCommand(app core.App) *cobra.Command { command := &cobra.Command{ Use: "winsc", - Short: "Install/Uninstall Windows service (Not supported on non-Windows OS)", + Short: "Manages Windows service (Not supported on non-Windows OS)", } return command diff --git a/cmd/winsc_windows.go b/cmd/winsc_windows.go index 4b790d3f..1c8e3d3b 100644 --- a/cmd/winsc_windows.go +++ b/cmd/winsc_windows.go @@ -23,7 +23,7 @@ const winscName = "certimate" func NewWinscCommand(app core.App) *cobra.Command { command := &cobra.Command{ Use: "winsc", - Short: "Install/Uninstall Windows service", + Short: "Manages Windows service", } command.AddCommand(winscInstallCommand(app)) diff --git a/main.go b/main.go index ee6a1b0c..d4dade11 100644 --- a/main.go +++ b/main.go @@ -48,7 +48,7 @@ func main() { pb.RootCmd.AddCommand(cmd.NewWinscCommand(pb)) switch os.Args[1] { - case "serve": + case "serve", "superuser": { pb.OnServe().BindFunc(func(e *core.ServeEvent) error { scheduler.Setup()