Enhancement

- Various commands now allow modification and annotation.
This commit is contained in:
Paul Beckingham 2011-07-09 23:45:31 -04:00
parent b5f04a3ebc
commit d087bdfd38
9 changed files with 168 additions and 59 deletions

View file

@ -68,6 +68,9 @@ int CmdDone::execute (std::string& output)
return 1;
}
// Apply the command line modifications to the completed task.
Arguments modifications = context.args.extract_modifications ();
Permission permission;
if (filtered.size () > (size_t) context.config.getInteger ("bulk"))
permission.bigSequence ();
@ -81,9 +84,7 @@ int CmdDone::execute (std::string& output)
{
Task before (*task);
// Apply the command line modifications to the new task.
Arguments modifications = context.args.extract_modifications ();
modify_task (*task, modifications);
modify_task_annotate (*task, modifications);
apply_defaults (*task);
// Add an end date.