Moved old registry resource to archive folder and excluded from build (no need to review, files moved without changes)
Wrote new registry resource using Registry crate simplifying the code, important behaviors to doc for resources:
When performing a get to a resource that doesn't exist, don't error. Instead return keys and _exist = false
When performing a delete to a resource that already doesn't exist, don't error. Instead return keys and _exist = false
Add delete as valid dsc resource operation
New property for set method handlesExist indicating that the resource will handle _exist directly so dsc will pass it as-is to the resource with test resource to validate. The engine work to change _exist to delete will come later after this is merged.
Updated table writer for dsc resource list to show SetHandlesExist and Delete capabilities
Updated existing tests using registry resource as it takes JSON via argument instead of stdin
PR Summary
registry
resource to archive folder and excluded from build (no need to review, files moved without changes)registry
resource using Registry crate simplifying the code, important behaviors to doc for resources:get
to a resource that doesn't exist, don't error. Instead return keys and_exist = false
delete
to a resource that already doesn't exist, don't error. Instead return keys and_exist = false
delete
as validdsc resource
operationset
methodhandlesExist
indicating that the resource will handle_exist
directly sodsc
will pass it as-is to the resource with test resource to validate. The engine work to change_exist
todelete
will come later after this is merged.dsc resource list
to showSetHandlesExist
andDelete
capabilitiesregistry
resource as it takes JSON via argument instead of stdinPR Context
Fix https://github.com/PowerShell/DSC/issues/283 Partially address https://github.com/PowerShell/DSC/issues/290