Synch
- Added server configuration test to synch command.
This commit is contained in:
@@ -50,13 +50,18 @@ int CmdSynch::execute (std::string& output)
|
|||||||
{
|
{
|
||||||
// TODO Tempporary.
|
// TODO Tempporary.
|
||||||
std::cout << "\n"
|
std::cout << "\n"
|
||||||
<< "Task Server Synchronization is not implemented in 2.0.0beta1.\n"
|
<< "Task Server Synchronization is not implemented in 2.0.0beta3.\n"
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
// TODO If no server is set up
|
// If no server is set up, quit.
|
||||||
// throw std::string ("Task server is not configured.");
|
std::string connection = context.config.get ("taskd.server");
|
||||||
|
if (connection == "" ||
|
||||||
|
connection.find (':') == std::string::npos)
|
||||||
|
throw std::string (STRING_CMD_SYNCH_NO_SERVER);
|
||||||
|
|
||||||
|
// Obtain credentials.
|
||||||
|
std::string credentials = context.config.get ("taskd.credentials");
|
||||||
|
|
||||||
// TODO Obtain credentials.
|
|
||||||
// TODO Obtain synch key.
|
// TODO Obtain synch key.
|
||||||
|
|
||||||
// TODO Compose backlog into ticket.
|
// TODO Compose backlog into ticket.
|
||||||
|
|||||||
@@ -334,7 +334,8 @@
|
|||||||
#define STRING_CMD_SHELL_HELP1 "Enter any task command (such as 'list'), or hit 'Enter'."
|
#define STRING_CMD_SHELL_HELP1 "Enter any task command (such as 'list'), or hit 'Enter'."
|
||||||
#define STRING_CMD_SHELL_HELP2 "There is no need to include the 'task' command itself."
|
#define STRING_CMD_SHELL_HELP2 "There is no need to include the 'task' command itself."
|
||||||
#define STRING_CMD_SHELL_HELP3 "Enter 'quit' (or 'bye', 'exit') to end the session."
|
#define STRING_CMD_SHELL_HELP3 "Enter 'quit' (or 'bye', 'exit') to end the session."
|
||||||
#define STRING_CMD_SYNCH_USAGE "(Not implemented for 2.0.0beta2)"
|
#define STRING_CMD_SYNCH_USAGE "Synchronizes data with the Task Server"
|
||||||
|
#define STRING_CMD_SYNCH_NO_SERVER "Task Server is not configured."
|
||||||
#define STRING_CMD_DIAG_USAGE "Shows information needed when reporting a problem"
|
#define STRING_CMD_DIAG_USAGE "Shows information needed when reporting a problem"
|
||||||
#define STRING_CMD_DIAG_PLATFORM "Platform"
|
#define STRING_CMD_DIAG_PLATFORM "Platform"
|
||||||
#define STRING_CMD_DIAG_UNKNOWN "<unknown>"
|
#define STRING_CMD_DIAG_UNKNOWN "<unknown>"
|
||||||
|
|||||||
Reference in New Issue
Block a user