@@ -24,12 +24,13 @@ func main() {
2424 fmt .Fprintln (os .Stderr , "\n Description:" )
2525 fmt .Fprintln (os .Stderr , "The official CodeGame CLI." )
2626 fmt .Fprintln (os .Stderr , "\n Commands:" )
27- fmt .Fprintln (os .Stderr , "\t new \t Create a new project." )
28- fmt .Fprintln (os .Stderr , "\t update \t Update the current project." )
29- fmt .Fprintln (os .Stderr , "\t run \t Run the current project." )
30- fmt .Fprintln (os .Stderr , "\t build \t Build the current project." )
31- fmt .Fprintln (os .Stderr , "\t info \t Display some info about a game server." )
32- fmt .Fprintln (os .Stderr , "\t docs \t Open the CodeGame documentation in a web browser." )
27+ fmt .Fprintln (os .Stderr , " new Create a new project." )
28+ fmt .Fprintln (os .Stderr , " update Update the current project." )
29+ fmt .Fprintln (os .Stderr , " change-url Permanently switch to a different game URL." )
30+ fmt .Fprintln (os .Stderr , " run Run the current project." )
31+ fmt .Fprintln (os .Stderr , " build Build the current project." )
32+ fmt .Fprintln (os .Stderr , " info Display some info about a game server." )
33+ fmt .Fprintln (os .Stderr , " docs Open the CodeGame documentation in a web browser." )
3334 fmt .Fprintln (os .Stderr , "\n About: https://code-game.org" )
3435 fmt .Fprintln (os .Stderr , "Copyright (c) 2022 CodeGame Contributors (https://code-game.org/contributors)" )
3536 pflag .PrintDefaults ()
@@ -50,6 +51,8 @@ func main() {
5051 err = commands .New ()
5152 case "update" :
5253 err = commands .Update ()
54+ case "change-url" :
55+ err = commands .ChangeURL ()
5356 case "info" :
5457 err = commands .Info ()
5558 case "docs" :
0 commit comments