Table of Contents

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

propertyName string

The property name which corresponds to the current option or argument.

completionContext CompletionContext

The completion context.

Returns

IEnumerable<CompletionItem>

An enumerable list of CompletionItem.