internal/functions/Confirm-DeleteForStrategy.ps1
function Confirm-DeleteForStrategy { [CmdletBinding()] param ( [string] $PacOwner, [string] $Strategy ) $shallDelete = switch ($PacOwner) { "thisPaC" { $true break } "otherPaC" { $false break } "unknownOwner" { $Strategy -eq "full" break } } return $shallDelete } |