mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Merge branch 'special_tags' into 1.9.0
Conflicts: ChangeLog src/recur.cpp - Implemented unit tests for the +nonag and +nocolor special tags.
This commit is contained in:
commit
50f27e0952
3 changed files with 81 additions and 0 deletions
|
@ -404,8 +404,15 @@ int getDueState (const std::string& due)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Returns a Boolean indicator as to whether a nag message was generated, so
|
||||
// that commands can control the number of nag messages displayed (ie one is
|
||||
// enough).
|
||||
bool nag (Task& task)
|
||||
{
|
||||
// Special tag overrides nagging.
|
||||
if (task.hasTag ("nonag"))
|
||||
return false;
|
||||
|
||||
std::string nagMessage = context.config.get ("nag");
|
||||
if (nagMessage != "")
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue