ValueCompleter Delegate

Definition

Assembly XenoAtom.CommandLine.dll

Provides completion candidates for a value being completed.

public delegate IEnumerable<string> ValueCompleter(int index, string valuePrefix);

Parameters

index
Int32

For options: the 0-based value index within the option (e.g. 0 for the first value, 1 for the second). For positional arguments: the 0-based argument index (including repeated indices for list/remainder arguments).

valuePrefix
String

The partially typed value prefix (can be empty).

Returns