Test-ChocolateyPin
SYNOPSIS
Test whether a package is set, enabled or not found
SYNTAX
Test-ChocolateyPin [-Name] <String> [[-Version] <String>] [<CommonParameters>]
DESCRIPTION
This command allows you to test the values of a pinned package.
EXAMPLES
EXAMPLE 1
Test-ChocolateyPin -Name PackageName -Version ''
PARAMETERS
-Name
Name of the Package to verify
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Version
Test if the Package version provided matches with the one set on the config file.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Boolean
NOTES
https://chocolatey.org/docs/commands-pin