Builds default-parameter entries for matching commands and parameters.
Resolve-AtlassianDefaultParameterValue [-Reference] <Hashtable> [-CommandName] <String[]>
[[-Target] <Hashtable>] [[-ParameterName] <String[]>] [<CommonParameters>]
Selects matching entries from a reference hashtable and writes them into a
target hashtable using Command:Parameter keys.
$reference = @{
'Invoke-WebRequest:TimeoutSec' = 30
'*:Verbose' = $true
}
Resolve-AtlassianDefaultParameterValue `
-Reference $reference `
-CommandName 'Invoke-WebRequest' `
-ParameterName 'TimeoutSec', 'Verbose'
Returns a hashtable with resolved defaults for the requested command.
Hashtable containing default values in Command:Parameter format.
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
One or more command names used to match reference entries.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Hashtable to receive resolved values. A new hashtable is used by default.
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: @{}
Accept pipeline input: False
Accept wildcard characters: False
Parameter names to match. Wildcards are supported.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: *
Accept pipeline input: False
Accept wildcard characters: True
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
None
System.Collections.Hashtable