CommandCompletion Class

Definition

Provides a set of possible completions for given input.

public class CommandCompletion
Inheritance
CommandCompletion

Constructors

CommandCompletion(Collection<CompletionResult>, Int32, Int32, Int32)

Properties

CompletionMatches

Gets all the completion results.

CurrentMatchIndex

Current index in CompletionMatches.

ReplacementIndex

Returns the starting replacement index from the original input.

ReplacementLength

Returns the length of the text to replace from the original input.

Methods

CompleteInput(String, Int32, Hashtable)
CompleteInput(Ast, Token[], IScriptPosition, Hashtable)
CompleteInput(String, Int32, Hashtable, PowerShell)

Invokes the script function TabExpansion2. For legacy support, TabExpansion2 will indirectly call TabExpansion if it exists.

CompleteInput(Ast, Token[], IScriptPosition, Hashtable, PowerShell)

Invokes the script function TabExpansion2. For legacy support, TabExpansion2 will indirectly call TabExpansion if it exists.

GetNextResult(Boolean)

Get the next result, moving forward or backward. Supports wraparound, so if there are any results at all, this method will never fail and never return null.

MapStringInputToParsedInput(String, Int32)