PowerShell_Scripts/flatpak/Kill-FlatpakInstance.ps1

15 lines
411 B
PowerShell
Raw Normal View History

[CmdletBinding(SupportsShouldProcess,ConfirmImpact='low')]param(
[Parameter(ValueFromPipeline,ValueFromPipelineByPropertyName,ValueFromRemainingArguments)]
[string[]]$Instance
)
BEGIN {}
PROCESS {
$Instance | ForEach-Object {
if ($PSCmdlet.ShouldProcess("$_", "Kill-FlatpackInstance")) {
Write-Verbose "Performing: flatpak kill $_"
flatpak kill $_
}
}
}