Skip to content

Feature: environment variable support #56

@worldjoe

Description

@worldjoe

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions