-
Notifications
You must be signed in to change notification settings - Fork 52
Enable group resource output schema to simplify config output that uses groups #318
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
Changes from all commits
e9ba9b1
d6a1da7
50028eb
d965a9a
6bacd4e
1e71283
41948c0
d691e5a
5cc6214
0cecb71
9445e72
c180851
dc86114
9fb3058
c8075a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Example for grouping and groups in groups | ||
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json | ||
resources: | ||
- name: Last Group | ||
type: DSC/Group | ||
properties: | ||
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json | ||
resources: | ||
- name: Last | ||
type: Test/Echo | ||
properties: | ||
output: Last | ||
dependsOn: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seems like too short ident for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
- "[resourceId('DSC/Group','First Group')]" | ||
- name: First Group | ||
type: DSC/Group | ||
properties: | ||
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json | ||
resources: | ||
- name: First | ||
type: Test/Echo | ||
properties: | ||
output: First | ||
- name: Nested Group | ||
type: DSC/Group | ||
properties: | ||
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json | ||
resources: | ||
- name: Nested Second | ||
type: Test/Echo | ||
properties: | ||
output: Nested Second | ||
dependsOn: | ||
- "[resourceId('Test/Echo','Nested First')]" | ||
- name: Nested First | ||
type: Test/Echo | ||
properties: | ||
output: Nested First |
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 would help if there were short examples of format for both
--as-group
and--as-get
in PR description (and docs).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.
I provided descriptions of those two switches in the PR description. They won't be doc'd since they are hidden and intended to be only used by dsc itself.