ICliGetCompletions.GetCompletions Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
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 retrieved.
IEnumerable<CompletionItem> GetCompletions(string propertyName, CompletionContext completionContext)
Parameters
propertyNamestringThe property name which corresponds to the current option or argument.
completionContextCompletionContextThe completion context.
Returns
- IEnumerable<CompletionItem>
An enumerable list of CompletionItem.