Fix error message formatting in command argument validation; add newline in server import section (#2)
All checks were successful
CI / build (push) Successful in 1m49s

Reviewed-on: #2
This commit is contained in:
2025-12-24 16:15:42 +08:00
parent 96e82cc357
commit 2f09bcb8a0
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ var rootCmd = &cobra.Command{
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
tip()
return errors.New(pkg.Red("requires at least one arg"))
return errors.New(pkg.Red("requires at least one arg"))
}
return nil
},

View File

@@ -7,6 +7,7 @@ import (
"github.com/mss-boot-io/mss-boot/core/server"
"github.com/mss-boot-io/mss-boot/core/server/listener"
"github.com/spf13/cobra"
"service-http/config"
"service-http/router"
)