CmdLog: Display the UUID of the logged task

This commit is contained in:
Tomas Babej 2015-08-06 05:39:33 +02:00 committed by Paul Beckingham
parent 889e36116c
commit 7ba98ea241
3 changed files with 4 additions and 4 deletions

View file

@ -71,8 +71,8 @@ int CmdLog::execute (std::string& output)
if (context.verbose ("project"))
context.footnote (onProjectChange (task));
if (context.verbose ("affected"))
output = std::string (STRING_CMD_LOG_LOGGED) + "\n";
if (context.verbose ("new-uuid"))
output = format (STRING_CMD_LOG_LOGGED, task.get ("uuid")) + "\n";
return 0;
}

View file

@ -270,7 +270,7 @@
#define STRING_CMD_LOG_USAGE "Adds a new task that is already completed"
#define STRING_CMD_LOG_NO_RECUR "You cannot log recurring tasks."
#define STRING_CMD_LOG_NO_WAITING "You cannot log waiting tasks."
#define STRING_CMD_LOG_LOGGED "Logged task."
#define STRING_CMD_LOG_LOGGED "Logged task {1}."
#define STRING_CMD_IDS_USAGE_RANGE "Shows the IDs of matching tasks, as a range"
#define STRING_CMD_IDS_USAGE_LIST "Shows the IDs of matching tasks, in the form of a list"
#define STRING_CMD_IDS_USAGE_ZSH "Shows the IDs and descriptions of matching tasks"

View file

@ -270,7 +270,7 @@
#define STRING_CMD_LOG_USAGE "Adds a new task that is already completed"
#define STRING_CMD_LOG_NO_RECUR "You cannot log recurring tasks."
#define STRING_CMD_LOG_NO_WAITING "保留のタスクはログできません。"
#define STRING_CMD_LOG_LOGGED "Logged task."
#define STRING_CMD_LOG_LOGGED "Logged task {1}."
#define STRING_CMD_IDS_USAGE_RANGE "Shows the IDs of matching tasks, as a range"
#define STRING_CMD_IDS_USAGE_LIST "Shows the IDs of matching tasks, in the form of a list"
#define STRING_CMD_IDS_USAGE_ZSH "Shows the IDs and descriptions of matching tasks"