mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Commands - done
- The 'done' command now functional. - Localized CmdDone.cpp.
This commit is contained in:
parent
1b90adc1aa
commit
877ecbc864
6 changed files with 54 additions and 48 deletions
12
src/Task.cpp
12
src/Task.cpp
|
@ -881,10 +881,14 @@ void Task::substitute (
|
|||
void Task::validate () const
|
||||
{
|
||||
// Every task needs an ID, entry and description attribute.
|
||||
if (!has ("uuid") ||
|
||||
!has ("entry") ||
|
||||
!has ("description"))
|
||||
throw std::string ("A task must have a description in order to be valid.");
|
||||
if (!has ("uuid"))
|
||||
throw std::string ("A task must have a UUID.");
|
||||
|
||||
if (!has ("entry"))
|
||||
throw std::string ("A task must have an entry timestamp.");
|
||||
|
||||
if (!has ("description"))
|
||||
throw std::string ("A task must have a description.");
|
||||
|
||||
if (get ("description") == "") // No i18n
|
||||
throw std::string ("Cannot add a task that is blank, or contains <CR> or <LF> characters.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue