20 lines
435 B
PowerShell
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)
|
|
} |