Rename DSCConfigRoot
environment variable to DSC_CONFIG_ROOT
and handle existing value
#335
Labels
DSCConfigRoot
environment variable to DSC_CONFIG_ROOT
and handle existing value
#335
Summary of the new feature / enhancement
Currently, DSC always sets the new
DSCConfigRoot
environment variable when a user specifies the--path
option for adsc config *
command. This doesn't match the format of the existingDSC_RESOURCE_PATH
environment variable, and non-Windows environment variables are typically uppercase.Users, especially higher-order and integrating tools, may want to reference a root folder for the purposes of locating other files for the configuration to use, even when the configuration isn't saved to disk. In these cases, the user or tool would set the environment variable and call the
dsc config *
command with the--document
option or by passing the document from stdin. This works as expected. However, if the environment variable has been manually set and the user calls the command with the--path
option, DSC silently overrides the value of the existing environment variable instead of warning the user.Proposed technical implementation details (optional)
DSCConfigRoot
toDSC_CONFIG_ROOT
.--path
option is specified. If it has, write a warning message to the user indicating that the variable value is being overridden for the command with the parent folder of the specified document path.The text was updated successfully, but these errors were encountered: