mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
test(functional): add tests for new environment operation flags
This commit is contained in:
parent
0b790b4849
commit
affd2dbc6c
3 changed files with 81 additions and 13 deletions
|
@ -321,11 +321,7 @@ MixEnvironment::MixEnvironment() : ignoreEnvironment(false)
|
|||
addFlag({
|
||||
.longName = "set-env-var",
|
||||
.shortName = 's',
|
||||
.description = "Add/override an environment variable *name* with *value*.\n\n"
|
||||
"> **Notes**\n"
|
||||
">\n"
|
||||
"> Duplicate definitions will be overwritten, last one wins.\n\n"
|
||||
"> Cancles out with `--unset-env-var`.\n\n",
|
||||
.description = "Sets an environment variable *name* with *value*.",
|
||||
.category = environmentVariablesCategory,
|
||||
.labels = {"name", "value"},
|
||||
.handler = {[&](std::string name, std::string value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue