mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-294
- TW-294 Display UUID of task created by add (thanks to John West).
This commit is contained in:
parent
949c7bba06
commit
b60a4aff22
6 changed files with 11 additions and 2 deletions
|
@ -55,7 +55,10 @@ int CmdAdd::execute (std::string& output)
|
|||
context.tdb2.add (task);
|
||||
|
||||
if (context.verbose ("new-id"))
|
||||
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
|
||||
if (context.verbose ("new-uuid"))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||
|
||||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (task));
|
||||
|
|
|
@ -114,6 +114,9 @@ int CmdDuplicate::execute (std::string& output)
|
|||
if (context.verbose ("new-id"))
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
|
||||
if (context.verbose ("new-uuid"))
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, dup.get ("uuid")) + "\n";
|
||||
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue