ICliAddCompletionsAddCompletions Method

This method will be called for every option and argument, you should switch according to the property name which corresponds to the option or argument whose completions will be modified.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 2.3.0
C#
void AddCompletions(
	string propertyName,
	List<Func<CompletionContext, IEnumerable<CompletionItem>>> completionSources
)

Parameters

propertyName  String
The property name which corresponds to the current option or argument.
completionSources  ListFuncCompletionContext, IEnumerableCompletionItem
The completion sources for the current option or argument, which will be modified.

See Also