Skip to content

add environment variable-based configuration #1066

@droopy4096

Description

@droopy4096

When using task in larger setups it would be more convenient to pass some of the configuration options via the environment variable so as not to update every line containing task invocation to add or remove options. Consider scenario of having several scripts with contents like:

#!/bin/sh

task target1
#....

task target2

to make them run in dry mode one has to alter all the shell scripts to include --dry option. However with environment variable configuration one can simply:

export TASK_DRY=yes

and run scripts with all task invocations picking up desired option automatically.

Of course --dry is only a sample, control of concurrency between workstation and CI node would be another good example. As well as increasing verbosity while debugging etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiChanges related to the UI of Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions