| ▲ | BrouteMinou 10 hours ago | |
One of the kick-ass feature of PowerShell is you only need to add `[CmdletBinding(SupportsShouldProcess)] ` to have the `-whatIf` dry-run for your functions. Quite handy. | ||
| ▲ | debugnik 5 hours ago | parent [-] | |
Even better, it enables both -WhatIf and -Confirm, and provides a ShouldProcess function that interacts with both and with the user's impact threshold preferences. Really cool. | ||