judo icon indicating copy to clipboard operation
judo copied to clipboard

Feature: environment variable support

Open worldjoe opened this issue 3 years ago • 1 comments

Feature Request:

the yaml/json files have no way to declare environment variables that are used for the commands. I tried adding a prerequisite line of set foobar=barfoo but the command doesn't inherit that. Instead it uses whatever foobar was set from the calling shell.

Would be nice if an environment variable could be set. Maybe a new section called "environment" and you can have key value pairs. Or maybe like I tried above, the prerequisites set calls would be repurposed by the command(s).

The first option could be passed along to the executor via the opts and sent down to spawn: https://nodejs.org/api/child_process.html#child_processspawncommand-args-options

worldjoe avatar Nov 09 '21 18:11 worldjoe

@worldjoe is this issue still open?

tasneemkoushar avatar Oct 17 '23 17:10 tasneemkoushar