* 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
23 lines
400 B
Go
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
|
|
}
|