mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Propagates cli, rules to CmdConfig
This commit is contained in:
parent
adae77e99e
commit
8bf0a2a0bc
3 changed files with 12 additions and 8 deletions
|
@ -25,20 +25,24 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <timew.h>
|
||||
#include <iostream>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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&);
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue