'config list' removed; 'config reload' renamed to 'reload'.

This commit is contained in:
Roland Jax
2014-10-28 11:07:11 +01:00
parent 0827c62f3f
commit 9a07c5d492
5 changed files with 28 additions and 24 deletions
+4 -15
View File
@@ -328,20 +328,13 @@ std::string BaseLoop::decodeMessage(const std::string& data)
break;
case config:
if (cmd.size() != 2) {
result << "usage: 'config list'" << std::endl
<< " 'config reload'";
case reload:
if (cmd.size() != 1) {
result << "usage: 'reload'";
break;
}
// ToDo: ...
if (strcasecmp(cmd[1].c_str(), "LIST") == 0) {
result << "not implemented yet";
break;
}
if (strcasecmp(cmd[1].c_str(), "RELOAD") == 0) {
{
// create Commands DB
Commands* commands = ConfigCommands(A.getParam<const char*>("p_ebusconfdir"), CSV).getCommands();
L.log(bas, trace, "ebus configuration dir: %s", A.getParam<const char*>("p_ebusconfdir"));
@@ -357,10 +350,6 @@ std::string BaseLoop::decodeMessage(const std::string& data)
break;
}
result << "usage: 'config list'" << std::endl
<< " 'config reload'";
break;
case help:
result << "commands:" << std::endl
<< " get - fetch ebus data 'get class cmd (sub)'" << std::endl
+2 -2
View File
@@ -52,7 +52,7 @@ private:
hex, // send hex value
dump, // change dump state
log, // logger settings
config, // ebus configuration
reload, // reload ebus configuration
help, // print commands
notfound
};
@@ -65,7 +65,7 @@ private:
if (strcasecmp(item.c_str(), "HEX") == 0) return hex;
if (strcasecmp(item.c_str(), "DUMP") == 0) return dump;
if (strcasecmp(item.c_str(), "LOG") == 0) return log;
if (strcasecmp(item.c_str(), "CONFIG") == 0) return config;
if (strcasecmp(item.c_str(), "RELOAD") == 0) return reload;
if (strcasecmp(item.c_str(), "HELP") == 0) return help;
return notfound;