bruno icon indicating copy to clipboard operation
bruno copied to clipboard

feat: Feature/cli support multiple file

Open berlingoqc opened this issue 1 year ago • 1 comments

Description

Add the ability to run multiple folder or file together in the cli.

bru.js run [filenames ...]
...
bru.js run folder folder2 request.bru -r  Run all requests in multiple files and/or folder

They run in order of the arguments

➜  ✗ bru.js run AGENT AGENT_2 AGENT_2/Get\ Agent.bru

Adding Folder AGENT
Adding Folder AGENT_2
Adding Request AGENT_2/Get Agent.bru

AGENT/Create Agent (getaddrinfo ENOTFOUND test.io)
AGENT/Get Agent (getaddrinfo ENOTFOUND test.io)
AGENT/Delete Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Create Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Get Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Delete Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Get Agent (getaddrinfo ENOTFOUND test.io)

Requests:    0 passed, 7 failed, 7 total
Tests:       0 passed, 0 total
Assertions:  0 passed, 0 total

Contribution Checklist:

  • [X] The pull request only addresses one issue or adds one feature.
  • [X] The pull request does not introduce any breaking changes
  • [X] I have added screenshots or gifs to help explain the change if applicable.
  • [X] I have read the contribution guidelines.
  • [X] Create an issue and link to the pull request.

Resolves #2955

berlingoqc avatar Aug 28 '24 16:08 berlingoqc

When will this be merged?

snoeber avatar Sep 27 '24 16:09 snoeber

@helloanoop Just a kind reminder to this PR - could you please give us an estimated time for merging this?

snoeber avatar Oct 07 '24 18:10 snoeber

As a work-around I'm currently using a (temporary) folder with symlinks of a subset of calls I need to call together, but can't wait for this to land. :)

lapo-luchini avatar Oct 14 '24 13:10 lapo-luchini

@lohit-bruno I was looking for this feature, a must have. When will this be merged in?

felisep avatar Feb 14 '25 09:02 felisep

Please, finish this PR, we really need this!

Silva-PT avatar Mar 06 '25 10:03 Silva-PT

Hey @berlingoqc

Thanks a lot for your work on this! Since the PR was quite old, there were too many conflicts to resolve directly. Building on your work, we've incorporated the changes here, and credited you as a co-author.

This will be part of our upcoming v2.6.0 release.

helloanoop avatar Jun 16 '25 17:06 helloanoop