test cobra

This commit is contained in:
wangchuxiao
2023-03-07 18:32:20 +08:00
parent 6eb13df2e2
commit 6bb8160a99
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ type RootCmd struct {
Command cobra.Command
}
func NewRootCmd() RootCmd {
func NewRootCmd(f func() error) RootCmd {
c := cobra.Command{
Use: "start",
Short: "Start the server",