Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature request: Command line list of files input #66

Open
sujaisd opened this issue Jan 14, 2022 · 0 comments
Open

Feature request: Command line list of files input #66

sujaisd opened this issue Jan 14, 2022 · 0 comments

Comments

@sujaisd
Copy link

sujaisd commented Jan 14, 2022

I am impressed with the behavior of dot-http and thanks to the team for building a wonderful tool.

Here are a few use cases where the product did not fit in and workarounds were used.

|---/httpfiles
       |--request-01.http
       |--request-02.http
       |--request-03.http

When a directory tree like above has multiple HTTP request files. The expected directory argument fails

$ dot-http httpfiles/*
error: Found argument 'httpfiles/request-01.http' which wasn't expected, or isn't valid in this context

USAGE:
    dot-http [OPTIONS] <FILE>

For more information try --help

An alternative solution was applied to handle the problem but would have been better with proper command-line integrations

Applied alternate solution

$ for FILE in httpfiles/*; do dot-http -n http-client.env.json $FILE; done
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant