PowerShell_Scripts/flatpak/Kill-FlatpakInstance.ps1

15 lines
411 B
PowerShell

[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 $_
}
}
}