Jianghan 3 anos atrás
pai
commit
1d0da9759e

+ 3 - 3
fieldproject_com/org_data/cmd/server.go → fieldproject_com/org_data/cmd/buer.go

@@ -13,8 +13,8 @@ func Winner() *cobra.Command {
 		cfg string
 	)
 	cmdServer := &cobra.Command{
-		Use:   "server",
-		Short: "Start Run crocodile server",
+		Use:   "winner",
+		Short: "Start Run winner...",
 		Run: func(cmd *cobra.Command, args []string) {
 			if len(cfg) == 0 {
 				cmd.Help()
@@ -23,6 +23,6 @@ func Winner() *cobra.Command {
 
 		},
 	}
-	cmdServer.Flags().StringVarP(&cfg, "conf", "c", "", "server config [toml]")
+	//cmdServer.Flags().StringVarP(&cfg, "conf", "c", "", "config")
 	return cmdServer
 }

+ 3 - 3
fieldproject_com/org_data/cmd/client.go → fieldproject_com/org_data/cmd/winner.go

@@ -11,8 +11,8 @@ func Buyer() *cobra.Command {
 		cfg string
 	)
 	cmdClient := &cobra.Command{
-		Use:   "client",
-		Short: "Start Run crocodile client",
+		Use:   "buyer",
+		Short: "Start Run buyer...",
 		Run: func(cmd *cobra.Command, args []string) {
 			if len(cfg) == 0 {
 				_ = cmd.Help()
@@ -21,6 +21,6 @@ func Buyer() *cobra.Command {
 
 		},
 	}
-	cmdClient.Flags().StringVarP(&cfg, "conf", "c", "", "server config [toml]")
+	//cmdClient.Flags().StringVarP(&cfg, "conf", "c", "", "config")
 	return cmdClient
 }

+ 2 - 2
fieldproject_com/org_data/go.mod

@@ -3,5 +3,5 @@ module org_data
 go 1.16
 
 require (
-        github.com/spf13/cobra v1.5.0
-        )
+    github.com/spf13/cobra v1.5.0
+)

+ 2 - 2
fieldproject_com/org_data/main.go

@@ -7,9 +7,9 @@ import (
 )
 
 func main() {
-	rootCmd := &cobra.Command{Use: "crocodile"}
+	rootCmd := &cobra.Command{Use: "org"}
 	rootCmd.AddCommand(cmd.Buyer())
-	rootCmd.AddCommand(cmd.Server())
+	rootCmd.AddCommand(cmd.Winner())
 	if err := rootCmd.Execute(); err != nil {
 		fmt.Println("rootCmd.Execute failed", err.Error())
 	}