dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

WhatIf and Confirm parameters

Open wsmelton opened this issue 10 years ago • 4 comments

The standard (and easiest) way to add WhatIf and Confirm parameters is to use the SupportsShouldProcess parameter of the CmdletBinding attribute. It adds the code/help automatically for you.

Otherwise, you need to add both manually, so that's a related doc issue. https://trello.com/c/ZcZgUk12/292-help-for-whatif-confirm

wsmelton avatar Sep 16 '16 03:09 wsmelton

I think this has been agreed upon (by a vast majority if not by all). @ctrlbold unless told so, I'd close this in a few days.

niphlod avatar Jan 12 '17 21:01 niphlod

@wsmelton / @ctrlbold can this be closed out?

SirCaptainMitch avatar Feb 10 '17 13:02 SirCaptainMitch

Originally, the Pester tests required docs to contain whatif and confirm, but when we discovered it should be autogenerated and not be in the docs, I thought Rob changed the Pester tests, or was certainly planning to. The rule is there should NOT be comment based help for those, right?

PowerDBAKlaas avatar Feb 10 '17 13:02 PowerDBAKlaas

Closing this one, don't think it is relevant anymore.

wsmelton avatar Mar 05 '17 07:03 wsmelton