mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug
- Fixed problem where 'project' was not supported as a verbosity token (thanks to Adam Gibbins).
This commit is contained in:
parent
deb12102f6
commit
80d6655709
17 changed files with 35 additions and 17 deletions
|
@ -56,12 +56,11 @@ int CmdAdd::execute (std::string& output)
|
|||
modify_task_description_replace (task, context.a3.extract_modifications ());
|
||||
context.tdb2.add (task);
|
||||
|
||||
// TODO This should be a call in to feedback.cpp.
|
||||
if (context.verbose ("new-id"))
|
||||
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
|
||||
// TODO verbosity token.
|
||||
context.footnote (onProjectChange (task));
|
||||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (task));
|
||||
|
||||
context.tdb2.commit ();
|
||||
return rc;
|
||||
|
|
|
@ -84,7 +84,8 @@ int CmdAnnotate::execute (std::string& output)
|
|||
context.tdb2.modify (*task);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_ANNO_TASK, *task);
|
||||
context.footnote (onProjectChange (*task, true));
|
||||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (*task, true));
|
||||
|
||||
// Annotate siblings.
|
||||
if (task->has ("parent"))
|
||||
|
|
|
@ -87,7 +87,8 @@ int CmdAppend::execute (std::string& output)
|
|||
context.tdb2.modify (*task);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_APPEND_TASK, *task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, true);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, true);
|
||||
|
||||
// Append to siblings.
|
||||
if (task->has ("parent"))
|
||||
|
|
|
@ -102,7 +102,8 @@ int CmdDelete::execute (std::string& output)
|
|||
feedback_affected (STRING_CMD_DELETE_TASK, *task);
|
||||
feedback_unblocked (*task);
|
||||
dependencyChainOnComplete (*task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, true);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, true);
|
||||
|
||||
// Delete siblings.
|
||||
if (task->has ("parent"))
|
||||
|
|
|
@ -103,7 +103,8 @@ int CmdDone::execute (std::string& output)
|
|||
if (!nagged)
|
||||
nagged = nag (*task);
|
||||
dependencyChainOnComplete (*task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -117,7 +117,8 @@ int CmdDuplicate::execute (std::string& output)
|
|||
if (context.verbose ("new-id"))
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -65,7 +65,8 @@ int CmdLog::execute (std::string& output)
|
|||
throw std::string (STRING_CMD_LOG_NO_WAITING);
|
||||
|
||||
context.tdb2.add (task);
|
||||
context.footnote (onProjectChange (task));
|
||||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (task));
|
||||
context.tdb2.commit ();
|
||||
|
||||
if (context.verbose ("affected") ||
|
||||
|
|
|
@ -112,7 +112,8 @@ int CmdModify::execute (std::string& output)
|
|||
feedback_affected (STRING_CMD_MODIFY_TASK, *task);
|
||||
feedback_unblocked (*task);
|
||||
context.tdb2.modify (*task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (before, *task);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (before, *task);
|
||||
|
||||
// Task potentially has siblings - modify them.
|
||||
if (task->has ("parent"))
|
||||
|
@ -132,7 +133,8 @@ int CmdModify::execute (std::string& output)
|
|||
feedback_affected (STRING_CMD_MODIFY_TASK_R, *sibling);
|
||||
feedback_unblocked (*sibling);
|
||||
context.tdb2.modify (*sibling);
|
||||
projectChanges[sibling->get ("project")] = onProjectChange (alternate, *sibling);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[sibling->get ("project")] = onProjectChange (alternate, *sibling);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +154,8 @@ int CmdModify::execute (std::string& output)
|
|||
updateRecurrenceMask (*child);
|
||||
context.tdb2.modify (*child);
|
||||
dependencyChainOnModify (alternate, *child);
|
||||
projectChanges[child->get ("project")] = onProjectChange (alternate, *child);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[child->get ("project")] = onProjectChange (alternate, *child);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_MODIFY_TASK_R, *child);
|
||||
}
|
||||
|
|
|
@ -87,7 +87,8 @@ int CmdPrepend::execute (std::string& output)
|
|||
context.tdb2.modify (*task);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_PREPEND_TASK, *task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, true);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, true);
|
||||
|
||||
// Prepend to siblings.
|
||||
if (task->has ("parent"))
|
||||
|
|
|
@ -96,7 +96,8 @@ int CmdStart::execute (std::string& output)
|
|||
if (!nagged)
|
||||
nagged = nag (*task);
|
||||
dependencyChainOnStart (*task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -92,7 +92,8 @@ int CmdStop::execute (std::string& output)
|
|||
++count;
|
||||
feedback_affected (STRING_CMD_STOP_TASK, *task);
|
||||
dependencyChainOnStart (*task);
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task->get ("project")] = onProjectChange (*task, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue