Skip to content

Add ShouldProcess/ConfirmImpact to Uninstall-PSResource #433

Open
@PaulHigin

Description

@PaulHigin

Look into adding a confirmation requirement when uninstalling a PSResource. Uninstall-Module does not do it, and maybe we should not do it for Uninstall-PSResource when a single specific module is uninstalled. But since Uninstall-PSResource handles Name wild card characters, we may want to prompt for confirmation in that case.

Uninstall-PSResource MyModule        #No confirmation prompt

Uninstall-PSResource *                         #Prompt for confirmation before uninstalling all modules.
Uninstall-PSResource * -Force              #No confirmation
Uninstall-PSResource * -Confirm:$false   ??

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions