Rename "status" command to "server-status"

This commit is contained in:
Marc Di Luzio 2020-07-04 23:05:08 +01:00
parent 98eea89484
commit f8e594cb39
8 changed files with 125 additions and 122 deletions

View file

@ -27,7 +27,7 @@ var defaultDataPath = path.Join(home, ".local/share/")
func printUsage() {
fmt.Fprintf(os.Stderr, "Usage: rove COMMAND [ARGS...]\n")
fmt.Fprintln(os.Stderr, "\nCommands")
fmt.Fprintln(os.Stderr, "\tstatus prints the server status")
fmt.Fprintln(os.Stderr, "\tserver-status prints the server status")
fmt.Fprintln(os.Stderr, "\tregister NAME registers an account and stores it (use with -name)")
fmt.Fprintln(os.Stderr, "\tcommands COMMAND [VAL...] issue commands to rover, accepts multiple, see below")
fmt.Fprintln(os.Stderr, "\tradar gathers radar data for the current rover")
@ -163,8 +163,8 @@ func InnerMain(command string, args ...string) error {
// Handle all the commands
switch command {
case "status":
response, err := client.Status(ctx, &rove.StatusRequest{})
case "server-status":
response, err := client.ServerStatus(ctx, &rove.ServerStatusRequest{})
switch {
case err != nil:
return err