mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdImport: Added support for free-form JSON import
This commit is contained in:
parent
5995320164
commit
c2c26b338b
4 changed files with 108 additions and 45 deletions
13
src/Task.cpp
13
src/Task.cpp
|
@ -151,6 +151,19 @@ Task::Task (const std::string& input)
|
|||
parse (input);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Task::Task (const json::object* obj)
|
||||
{
|
||||
id = 0;
|
||||
urgency_value = 0.0;
|
||||
recalc_urgency = true;
|
||||
is_blocked = false;
|
||||
is_blocking = false;
|
||||
annotation_count = 0;
|
||||
|
||||
parseJSON (obj);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Task::~Task ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue