Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple files #357

Open
TalAmuyal opened this issue Sep 10, 2023 · 1 comment
Open

Support multiple files #357

TalAmuyal opened this issue Sep 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@TalAmuyal
Copy link

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 TalAmuyal added the enhancement New feature or request label Sep 10, 2023
@TomWright
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants