toShellVars
lib.strings.toShellVars
Docs pulled from | This Revision | about 9 hours ago
Translate an attribute set vars
into corresponding shell variable declarations
using toShellVar
.
Inputs
vars
- 1. Function argument
Type
toShellVars :: {
${name} :: string | [ string ] | { ${key} :: string; };
} -> string
Examples
lib.strings.toShellVars
usage example
let
foo = "value";
bar = foo;
in ''
${toShellVars { inherit foo bar; }}
[[ "$foo" == "$bar" ]]
''