-
Notifications
You must be signed in to change notification settings - Fork 55
Add --system-root parameter, systemRoot() and path() functions to dsc
#589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thinking about this further, I'm going to propose a few changes:
The use of Although for the latter case to work online, |
--mounted-path parameter to dsc--target-path parameter, targetPath() and path() functions to dsc
|
Would it be helpful to have some sort of |
Co-authored-by: Tess Gauthier <[email protected]>
That could be useful as a warning message if the user provided Creatd #591 for future static linting work |
--target-path parameter, targetPath() and path() functions to dsc--system-root parameter, systemRoot() and path() functions to dsc
|
Decided to rename to |
Co-authored-by: Tess Gauthier <[email protected]>
PR Summary
To enable offline configuration management, add
--system-rootparameter andsystemRoot()function (takes no arguments) to DSC. The provided path must exist. Supported resources would need to accept the path to use rather than the current running OS.If
--system-rootis not specified, thensystemRoot()will default to$env:SYSTEMDRIVEon Windows and/on Linux/macOS.Also added
path()function that takes any number of strings and concatenates it with the OS directory separator char.PR Context
Fix #534