This commit is contained in:
Fu Diwei 2026-06-17 10:08:28 +08:00
parent 20f211f398
commit f8aa0f1978
5 changed files with 5 additions and 5 deletions

View File

@ -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))

View File

@ -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)

View File

@ -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

View File

@ -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))

View File

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