|
@@ -1,19 +1,18 @@
|
|
|
#include "../include/commands.hpp"
|
|
|
|
|
|
-CMD
|
|
|
- commands[]{
|
|
|
- {CMD_HELP, "help", "show help"},
|
|
|
- {CMD_STATUS, "status", "query status of IP"},
|
|
|
- {CMD_DISCONNECT, "disconnect", "disconnect from IP"},
|
|
|
+CMD commands[]{
|
|
|
+ {CMD_HELP, "help", "show help"},
|
|
|
+ {CMD_STATUS, "status", "query status of IP"},
|
|
|
+ {CMD_DISCONNECT, "disconnect", "disconnect from IP"},
|
|
|
|
|
|
- /* TODO
|
|
|
- {CMD_PUT , "put", "upload file to IP and add to queue"},
|
|
|
- {CMD_REMOVE , "remove", "remove file from IP and queue (stops xfer
|
|
|
- if required)"}, {CMD_GET , "get", "retrieve file from IP"},
|
|
|
- {CMD_SETUP , "setup", "configure server at IP"},
|
|
|
- {CMD_LOG , "log", "show log from IP"}
|
|
|
- */
|
|
|
- };
|
|
|
+ /* TODO
|
|
|
+ {CMD_PUT , "put", "upload file to IP and add to queue"},
|
|
|
+ {CMD_REMOVE , "remove", "remove file from IP and queue (stops xfer
|
|
|
+ if required)"}, {CMD_GET , "get", "retrieve file from IP"},
|
|
|
+ {CMD_SETUP , "setup", "configure server at IP"},
|
|
|
+ {CMD_LOG , "log", "show log from IP"}
|
|
|
+ */
|
|
|
+};
|
|
|
|
|
|
COMMANDID getCmdIdFromString(const char *str) {
|
|
|
COMMANDID ret = CMD_UNKNOWN;
|