mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdDone
- Converted from A3 modifications to Task::modify.
This commit is contained in:
parent
03d4aacc5c
commit
a1a58bdc32
1 changed files with 1 additions and 4 deletions
|
@ -62,9 +62,6 @@ int CmdDone::execute (std::string& output)
|
|||
return 1;
|
||||
}
|
||||
|
||||
// Apply the command line modifications to the new task.
|
||||
A3 modifications = context.a3.extract_modifications ();
|
||||
|
||||
// Accumulated project change notifications.
|
||||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
|
@ -82,7 +79,7 @@ int CmdDone::execute (std::string& output)
|
|||
task->id,
|
||||
task->get ("description"));
|
||||
|
||||
modify_task_annotate (*task, modifications);
|
||||
task->modify (Task::modAnnotate);
|
||||
task->setStatus (Task::completed);
|
||||
if (! task->has ("end"))
|
||||
task->setEnd ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue