Skip to main content

Register-ClientArgumentCompleter

SYNOPSIS​

Register PSc8y argument completions for a specific cmdlet

SYNTAX​

Register-ClientArgumentCompleter
[-Command] <Object>
[-BoundParameters <Hashtable>]
[<CommonParameters>]

DESCRIPTION​

The cmdlet enables support for argument completion which are used within PSc8y in other modules.

EXAMPLES​

EXAMPLE 1​

Register-ClientArgumentCompleter -Name "Get-MyCustomCommand"

Register PSc8y argument completion for supported parameters for a custom function called "Get-MyCustomCommand"

EXAMPLE 2​

Register-ClientArgumentCompleter -Name "New-CustomManagedObject"

Force the registration of argument completers on a function which uses dynamic parameters

PARAMETERS​

-Command​

Command Name

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-BoundParameters​

Bound parameters

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
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​

NOTES​

The following argument completions are supports

  • -Session - Session selection completion
  • -Template - Template file completion