PowerShell / PowerShell/PSResourceGet

Add ShouldProcess/ConfirmImpact to Uninstall-PSResource

Offen
#433 3 Kommentare 2 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@anamnavi arbeitet bereits daran.

Seit 19.1.2022.

Area-Uninstall
Vorherrschende Sprache
C#
Sterne
576
Forks
114
Ø Merge
1 T. 2 Std.
Gemergte PRs (30 T.)
7

Beschreibung

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   ??

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.