dasel icon indicating copy to clipboard operation
dasel copied to clipboard

Support multiple files

Open TalAmuyal opened this issue 2 years ago • 1 comments

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>
    }
]

TalAmuyal avatar Sep 10 '23 12:09 TalAmuyal

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.

TomWright avatar Oct 18 '23 18:10 TomWright