From 273e824e2d2d9704d7715215ce67661318a78480 Mon Sep 17 00:00:00 2001 From: lwnmengjing Date: Fri, 14 Nov 2025 10:57:47 +0800 Subject: [PATCH] Fix error message formatting in command argument validation; add newline in server import section --- cmd/cobra.go | 2 +- cmd/server/server.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cobra.go b/cmd/cobra.go index 8f18576..5f55d71 100644 --- a/cmd/cobra.go +++ b/cmd/cobra.go @@ -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 }, diff --git a/cmd/server/server.go b/cmd/server/server.go index 754b05b..ee507b6 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -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" )