mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Portability
- Removed unnecessary dependence on Bash: sh is POSIX, bash is not.
This commit is contained in:
parent
23cd59a9a1
commit
968d1c32e8
2 changed files with 17 additions and 2 deletions
15
src/Task.cpp
15
src/Task.cpp
|
@ -946,6 +946,21 @@ bool Task::hasTag (const std::string& tag) const
|
|||
if (tag == "DUE") return is_due ();
|
||||
if (tag == "DUETODAY") return is_duetoday ();
|
||||
if (tag == "OVERDUE") return is_overdue ();
|
||||
/*
|
||||
TODO TODAY - due today
|
||||
TODO YESTERDAY - due yesterday
|
||||
TODO TOMORROW - due tomorrow
|
||||
TODO WEEK - due this week
|
||||
TODO MONTH - due this month
|
||||
TODO YEAR - due this year
|
||||
TODO ANNOTATED - has any annotations
|
||||
TODO ACTIVE - is active
|
||||
TODO SCHEDULED - is scheduled
|
||||
TODO WAITING - is waiting
|
||||
TODO CHILD - is a child
|
||||
TODO PARENT - is a parent
|
||||
TODO UNTIL - will expire
|
||||
*/
|
||||
|
||||
// Concrete tags.
|
||||
std::vector <std::string> tags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue