GetCompletionsForLine(String, Int32, String?) Method

Definition

Assembly XenoAtom.CommandLine.dll

Gets completion candidates for a full command line and a cursor position within it.

public IEnumerable<string> GetCompletionsForLine(string commandLine, int cursorPosition, string? commandName = null)

Parameters

commandLine
String

The full command line as typed in the shell, typically including the executable name.

cursorPosition
Int32

The 0-based cursor position within commandLine.

commandName
String

The invocation name (e.g. "mytool") to strip from the beginning of the token stream.

Returns