Merge Input Documents
Last updated
Last updated
This flag tells dasel to merge input documents into an array.
Note that when --merge-input-documents
is passed, even a single document will be converted to an array.
Pass the --merge-input-documents
to or commands.
With the flag:
Without the flag:
Take note that merge in this context means taking all of the input documents and adding them to a single array of those documents.
Input: a
, b
, c
Output: [a, b, c]
Where:
a: {"number": 1}
b: {"number": 2}
c: {"number": 3}
Becomes:
The use of "merge" here could be mistaken in that you may expect the following output:
If you are looking for the 2nd output above, see the .