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

Feature request: header argument for --slurpfile #28

Open
johanwk opened this issue Jan 22, 2021 · 1 comment
Open

Feature request: header argument for --slurpfile #28

johanwk opened this issue Jan 22, 2021 · 1 comment

Comments

@johanwk
Copy link

johanwk commented Jan 22, 2021

As far as I can see, it's not currently possible to get input from more than one file in a jq block.

I propose adding a new header argument, which can appear more than once, to allow for several files to be read into variables. Something like this:

#+header: :slurpfile file1=file1.json :slurpfile file2=file2.json

@Fuco1
Copy link
Collaborator

Fuco1 commented Jan 22, 2021

As a workaround you can use the :stdin option and cat the files in another shell block.

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

No branches or pull requests

2 participants