dasel
dasel copied to clipboard
Support multiple files
Related Problem
I often need to make a query on a collection of files (usually collected using find) to both filter using said query and print.
The solution that I'd like
In case there is more than one -f-s, or if -f gets a pattern, the base data structure would be a list of objects.
Each object will have the following key-value pairs: file-name, (provided) file path (name included), and (parsed) content.
Something like:
[
{
"name": "my-file.toml",
"path": "data/my-file.toml",
"content": <PARSED TOML>
}
]
On the surface this looks good, but we'll run into trouble when we use formats other than JSON... CSV for example. I'll have a think about how this can be supported.