Conversation
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Seems like we need to makes sure we have test cases covering all your bullet points
|
Added tests. |
|
After trying out your branch, we should discuss some user experience options:
For docs, we should make the examples use wildcards in single quotes: dsc resource list '*os*'As on non-Windows, the shell will try to glob the wildcard and pass found files to the command causing it to fail. |
|
My thoughts:
It is shorter to type
I agree with this; it is more intuitive than current behavior. |
|
Get-dscresource allows the user to specify a module or individual resource. The operation is faster when it is scoped. That might be worth considering as well. |
We would have a |
Updated code and PR description for both points. |
Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Steve Lee <slee@microsoft.com>
Co-authored-by: Steve Lee <slee@microsoft.com>
PR Summary
Fix #274
Fix #368
Examples:
dsc resource listsame asdsc resource list *- show all native resources, adapters, but not adapter-based resources (fastest);dsc resource list *Microsoft*- same as previous but also apply*Microsoft*filter;dsc resource list * -a *- show all adapter-based resources;dsc resource list * -a *PowerShell*- show all resources of adapters that match*PowerShell*filterdsc resource list *MSFT_PackageManagement* *PowerShell*- same as previous but also apply*MSFT_PackageManagement*filter to resource types;