chrly/cmd/worker.go

18 lines
309 B
Go
Raw Normal View History

2020-01-03 03:21:57 +05:30
package cmd
import (
"github.com/spf13/cobra"
)
var workerCmd = &cobra.Command{
Use: "worker",
Short: "Starts HTTP handler for the Mojang usernames to UUIDs worker",
Run: func(cmd *cobra.Command, args []string) {
startServer([]string{"worker"})
2020-01-03 03:21:57 +05:30
},
}
func init() {
RootCmd.AddCommand(workerCmd)
}