client: Move commands around to more logical places in the table
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 26 Apr 2013 10:57:37 +0000 (13:57 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 30 Apr 2013 10:40:49 +0000 (13:40 +0300)
client/commands.c

index 32a8220..14f552a 100644 (file)
@@ -1184,12 +1184,14 @@ static const struct {
         int (*func) (char *args[], int num, struct option *options);
         const char *desc;
 } cmd_table[] = {
+       { "state",        NULL,           NULL,            NULL,
+         cmd_state, "Shows if the system is online or offline" },
+       { "technologies", NULL,           NULL,            NULL,
+         cmd_technologies, "Display technologies" },
        { "enable",       "<technology>|offline", NULL,    NULL,
          cmd_enable, "Enables given technology or offline mode" },
        { "disable",      "<technology>|offline", NULL,    NULL,
          cmd_disable, "Disables given technology or offline mode"},
-       { "state",        NULL,           NULL,            NULL,
-         cmd_state, "Shows if the system is online or offline" },
        { "tether", "<technology> on|off\n"
                    "            wifi [on|off] <ssid> <passphrase> ",
                                          NULL,            NULL,
@@ -1197,8 +1199,6 @@ static const struct {
          "Enable, disable tethering, set SSID and passphrase for wifi" },
        { "services",     "[<service>]",  service_options, &service_desc[0],
          cmd_services, "Display services" },
-       { "technologies", NULL,           NULL,            NULL,
-         cmd_technologies, "Display technologies" },
        { "scan",         "<technology>", NULL,            NULL,
          cmd_scan, "Scans for new services for given technology" },
        { "connect",      "<service>",    NULL,            NULL,