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