|
|
@ -15,11 +15,11 @@ var template []byte |
|
|
|
func main() { |
|
|
|
root := &cobra.Command{}; |
|
|
|
servecmd := &cobra.Command{ |
|
|
|
Use: "serve", |
|
|
|
Use: "download", |
|
|
|
Short: "server to listen for competitive companion requests", |
|
|
|
Run: func(cmd *cobra.Command, args []string) { |
|
|
|
port, _ := cmd.Flags().GetInt("port"); |
|
|
|
fmt.Println("Listning on port", port, "...") |
|
|
|
fmt.Println("Listening on port", port, "...") |
|
|
|
server(port); |
|
|
|
}, |
|
|
|
} |
|
|
|