Byte-snake-engine/cli/commands/map.go
Rob O'Dwyer 09aea9c49d
DEV 1666: Fix /end requests and clean up logging (#109)
* ensure /end request is always called, and refactor win/draw logic

* clean up logging and error handling during initialization

* automatically generate friendly snake names

* title-case snake names

* print out list of alive snake names instead of count

* log snake names, IDs, and URLs at startup

* print out state for turn zero
2022-09-02 14:35:55 -07:00

23 lines
400 B
Go

package commands
import (
"github.com/spf13/cobra"
log "github.com/spf13/jwalterweatherman"
)
func NewMapCommand() *cobra.Command {
var mapCmd = &cobra.Command{
Use: "map",
Short: "Display map information",
Long: "Display map information",
Run: func(cmd *cobra.Command, args []string) {
err := cmd.Help()
if err != nil {
log.ERROR.Fatal(err)
}
},
}
return mapCmd
}