SYNTAX

DESCRIPTION

Registers a scriptblock under name, to later be available for TabExpansion.

This system supports two separate types of input: Full or Simple.

Simple:
The scriptblock simply must return string values.
PSFramework will then do the rest of the processing when the user asks for tab completion.
This is the simple-most way to implement tab completion, for a full example, look at the first example in this help.

Full:
A full scriptblock implements all that is needed to provide Tab Expansion.
For more details and guidance, see the following concept help:
Get-Help about_psf_tabexpansion

Stores a simple scriptblock that will return a list of strings under the name “mymodule-scripts”.
The system will wrap all the stuff around this that is necessary to provide Tab Expansion and filter out output that doesn’t fit the user input so far.

-CacheDuration

How long a tab completion result is valid.
By default, PSFramework tab completion will run the scriptblock on each call.
This can be used together with a background refresh mechanism to offload the cost of expensive queries into the background.
See Set-PSFTeppResult for details on how to refresh the cache.