diff --git a/src/commands/CmdConfig.cpp b/src/commands/CmdConfig.cpp index 269f51db..8f9f7f81 100644 --- a/src/commands/CmdConfig.cpp +++ b/src/commands/CmdConfig.cpp @@ -25,20 +25,24 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include //////////////////////////////////////////////////////////////////////////////// -int CmdConfig () +int CmdConfig ( + const CLI& cli, + Rules& rules) { - std::cout << "[config: allows set/reset/removal and enumeration of configuration settings]\n"; - - // TODO Determine form: + // Determine form: // timew config name value Set name=value // timew config name '' Set name='' // timew config name Remove name - // timew config Show all config + // TODO timew config Show all config - return 0; + int rc = 0; + + + return rc; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/commands/commands.h b/src/commands/commands.h index bf6ec6e7..9b6e53d2 100644 --- a/src/commands/commands.h +++ b/src/commands/commands.h @@ -34,7 +34,7 @@ int CmdCancel ( Rules&, Database& ); int CmdClear ( ); -int CmdConfig ( ); +int CmdConfig (const CLI&, Rules& ); int CmdContinue ( Rules&, Database& ); int CmdDefault ( Rules&, Database& ); int CmdDiagnostics ( Rules&, Database&, const Extensions&); diff --git a/src/init.cpp b/src/init.cpp index 7ff347fc..a5a85cfb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -228,7 +228,7 @@ int dispatchCommand ( // command to fn mapping. if (command == "cancel") status = CmdCancel ( rules, database ); else if (command == "clear") status = CmdClear ( ); - else if (command == "config") status = CmdConfig ( ); + else if (command == "config") status = CmdConfig (cli, rules ); else if (command == "continue") status = CmdContinue ( rules, database ); else if (command == "diagnostics") status = CmdDiagnostics ( rules, database, extensions); else if (command == "export") status = CmdExport (cli, rules, database );