ps/Modules/Alkami.PowerShell.Choco/Public/Get-LocallyInstalledChocoPackages.ps1
2023-05-30 22:51:22 -07:00

20 lines
435 B
PowerShell

function Get-LocallyInstalledChocoPackages {
<#
.SYNOPSIS
Returns the currently installed chocolatey packages
.PARAMETER LimitOutput
Used for -r flag functionality. Returns a machine parseable list of chocolatey records
#>
[CmdletBinding()]
param (
[switch]$LimitOutput
)
$limitOutputFlag = ""
if($LimitOutput) {
$limitOutputFlag = "-r"
}
return (choco list -l $limitOutputFlag)
}