Fix error message formatting in command argument validation; add newline in server import section
All checks were successful
CI / build (pull_request) Successful in 1m25s
All checks were successful
CI / build (pull_request) Successful in 1m25s
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user