For config operations, if --path dsc parameter is used, then:
1) DSCConfigRoot env var is defined and inherited by child resource processes that can be used to determine the location of the configuration file that is running;
2) envvar function can be used in the configuration text like so:
Notes:
1) if configuration is piped using stdin or -d/--document parameter, then value of env var is empty string.
2) for non-config operations env var is not created.
PR Summary
Fix #75
For config operations, if
--path
dsc parameter is used, then: 1)DSCConfigRoot
env var is defined and inherited by child resource processes that can be used to determine the location of the configuration file that is running; 2)envvar
function can be used in the configuration text like so:Notes: 1) if configuration is piped using stdin or
-d
/--document
parameter, then value of env var is empty string. 2) for non-config operations env var is not created.