mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 23:46:42 +02:00
Import: Allow importing JSON arrays
- "export" defaults to JSON array output now. Make "import" read it instead of throwing an error.
This commit is contained in:
parent
b92802c2fb
commit
8613a49f6e
2 changed files with 4 additions and 1 deletions
|
@ -65,6 +65,7 @@
|
||||||
- The '_ids', '_projects', '_tags', '_uuids' helper commands are deprecated,
|
- The '_ids', '_projects', '_tags', '_uuids' helper commands are deprecated,
|
||||||
and replaced by the new '_unique' helper command, which generates lists of
|
and replaced by the new '_unique' helper command, which generates lists of
|
||||||
unique values for the specified attribute.
|
unique values for the specified attribute.
|
||||||
|
- "import" can now import JSON arrays, the new default "export" output.
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,9 @@ int CmdImport::import (std::vector <std::string>& lines)
|
||||||
{
|
{
|
||||||
std::string object = trimLeft (
|
std::string object = trimLeft (
|
||||||
trimRight (
|
trimRight (
|
||||||
trim (line),
|
trimRight (
|
||||||
|
trim (line),
|
||||||
|
","),
|
||||||
"]"),
|
"]"),
|
||||||
"[");
|
"[");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue