Runner for external cli tool with FilePath and console staying open
Answered
Hi,
I would like to configure a runner for an external tool (bru cli - Bruno CLI | Bruno (usebruno.com) ) that should be executed on the currently edited file. The runner can either run in the terminal or open an extra bash/cmd/powershell window - it just needs to stay open after execution so I can see output - or the output should be in the terminal.
I couldn't figure out how to pass the current filename and the opening cmd window closes right after execution.
This is my configuration:

Any hint into the right direction would be highly appreciated.
Thank you in advance,
kc
Please sign in to leave a comment.
Hello,
If you want to execute some command line tool consider configuring an external tools to run it - it supports different macro variables, including currently focused file.
Hi Yaroslav,
Thank you for the quick reply. I've been at that documentation page and just tried setting it up using it again.
The issue I am having is that the bru executable needs to run in a shell and I haven't figured out how to provide the required arguments (filepath and working dir) to the opening a shell & keeping the shell open after execution. I also wouldn't mind executing the command in the IDEA terminal.
Any idea how to achieve this?
Thank you,
kc
Please try this configuration
Hi,
Thank you so much - I was missing the .cmd suffix for Windows (maybe I should stay with Linux ;) ).
As a reference, here is the configuration that did the trick
Thank you very much and have a great day!
Cheers,
Kai
Kai,
You are welcome!