nils-soderman / vscode-batch-runner

Visual Studio Code extension to run batch files in the terminal
https://marketplace.visualstudio.com/items?itemName=NilsSoderman.batch-runner
MIT License
5 stars 5 forks source link

Send parameters and potentially integrate with launch.json #8

Closed ruffin-- closed 1 year ago

ruffin-- commented 1 year ago

How do I send parameters to the command being executed?

If there's not a way I've missed (AIA in I have), something like the args property of launch.json in node would be really useful.

These attributes are only available for launch configurations of request type launch:

...

args - arguments passed to the program to debug. This attribute is of type array and expects individual arguments as array elements.

nils-soderman commented 1 year ago

Hi,

As of right now there's no way to pass along arguments.

Been thinking about adding another command e.g. "Run batch file with arguments" that will spawn a text input dialog first to allow the user to insert any number of arguments: image

Will be looking into this in the near future!

nils-soderman commented 1 year ago

Hi,

Just released version 1.1.0 which includes a new command batch-utils.execBatchFileArgs that spawns an input dialog where you can type the arguments.

Cheers, Nils