-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Implemented in shovel 0.5
- Remove similar uninstallation code
libexec/uninstall.ps1
andbin/uninstall.ps1
use similar/duplicated code for uninstallation- Move adequate uninstallation functions into lib/uninstall.ps1
- Duplicated function:
- Scoop-UninstallApplication
- params:
- [String] $AppName
- Maybe default to *
- [Switch] $Global
- [String] $AppName
- return:
- Boolean if some error occured
- params:
- Scoop-UninstallApplication
- Implement uninstallation of running applications
- function Scoop-GetProcess($appname, $global) into core/install/uninstall
- Return whole Get-Process
<# .SYNOPSIS Get all running processes for given app. .PARAMETER AppName Name of the application. Default to return all running applications. (Mainly for uninstallatino of whole scoop) .PARAMETER Global Get process for globally installed applications. #> function Scoop-GetProcess { param( [String] $AppName = '*', [Switch] $Global ) $procs = Get-Process # Avoid calling twice for each path if ($Global) { return $procs | Where-Object { $_.Path -like "$globaldir\apps\$AppName\*" } } else { return $procs | Where-Object { $_.Path -like "$scoopdir\apps\$AppName\*" } } }
- Adopt libexecs for Get-Process
- Uninstall
- Update
- function Scoop-GetProcess($appname, $global) into core/install/uninstall
- ❓ Add force parameter to uninstall for killing running applications
rasa and armpogart
Metadata
Metadata
Assignees
Labels
No labels