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

Processing several input files by hurlfmt #1650

Closed
fabricereix opened this issue Jun 16, 2023 · 0 comments · Fixed by #1661
Closed

Processing several input files by hurlfmt #1650

fabricereix opened this issue Jun 16, 2023 · 0 comments · Fixed by #1661
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@fabricereix
Copy link
Collaborator

Currently, hurlfmt takes only one input file.
It could be generalized to several input files, especially useful when reformatting Hurl file in-place.

with the default output (not in-place), it should simply concatenate all the output, like cat.

For example

file1.hurl
GET http://localhost:8000/hello

file2.hurl
GET http://localhost:8000/hi
hurlfmt file1.hurl file2.hurl
GET http://localhost:8000/hello
GET http://localhost:8000/hi
$ hurlfmt --out json file1.hurl file2.hurl
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello"}}]}
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hi"}}]}
@fabricereix fabricereix added the enhancement New feature or request label Jun 16, 2023
@fabricereix fabricereix added this to the 4.0.0 milestone Jun 16, 2023
@fabricereix fabricereix self-assigned this Jun 16, 2023
@fabricereix fabricereix linked a pull request Jun 18, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant