Add should process support for remove d365database #881
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements to the
Remove-D365Database
function and its usage in theNew-D365Bacpac
function. The key changes include adding new parameters to improve user control and updating documentation and tests accordingly.fixes #879
Enhancements to
Remove-D365Database
function:-Confirm
,-WhatIf
, and-Force
parameters toRemove-D365Database
to provide better control over command execution and user confirmation. (d365fo.tools/functions/remove-d365database.ps1
, [1] [2] [3]ShouldProcess
for high-impact actions, ensuring users are prompted for confirmation before executing critical steps. (d365fo.tools/functions/remove-d365database.ps1
, d365fo.tools/functions/remove-d365database.ps1R89-R99)Updates to
New-D365Bacpac
function:Remove-D365Database
to include-Confirm:$false
, bypassing confirmation prompts during automated processes. (d365fo.tools/functions/new-d365bacpac.ps1
, [1] [2]Documentation updates:
Remove-D365Database
documentation to include descriptions and usage examples for the new-Confirm
,-WhatIf
, and-Force
parameters. (docs/Remove-D365Database.md
, [1] [2]Testing enhancements:
-Force
parameter inRemove-D365Database
. (d365fo.tools/tests/functions/Remove-D365Database.Tests.ps1
, d365fo.tools/tests/functions/Remove-D365Database.Tests.ps1R79-R97)