mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 04:00:37 +02:00
TW-1704: Task: Use Task::identifier to reference the task
To achieve consistent output, use a helper method to generate a proper handle - ID for tasks with non-zero ID, UUID otherwise.
This commit is contained in:
parent
1236abc7d5
commit
2d25cf6f59
16 changed files with 50 additions and 57 deletions
|
@ -78,7 +78,7 @@ int CmdStop::execute (std::string&)
|
|||
|
||||
// Stop the specified task.
|
||||
std::string question = format (STRING_CMD_STOP_CONFIRM,
|
||||
task.id,
|
||||
task.identifier (true),
|
||||
task.get ("description"));
|
||||
|
||||
task.modify (Task::modAnnotate);
|
||||
|
@ -108,7 +108,7 @@ int CmdStop::execute (std::string&)
|
|||
else
|
||||
{
|
||||
std::cout << format (STRING_CMD_STOP_ALREADY,
|
||||
task.id,
|
||||
task.identifier (true),
|
||||
task.get ("description"))
|
||||
<< "\n";
|
||||
rc = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue