1 write to InsertText
System.CommandLine (1)
Completions\CompletionItem.cs (1)
32
InsertText
= insertText ?? label;
6 references to InsertText
System.CommandLine (1)
Completions\CompletionItem.cs (1)
15
/// <param name="label">The label value, which is the text displayed to users and, unless <paramref name="insertText"/> is set, is also used to populate the <see cref="
InsertText
"/> property.</param>
System.CommandLine.StaticCompletions (5)
shells\FishShellProvider.cs (1)
370
var label = completion.
InsertText
?? completion.Label;
shells\PowershellShellProvider.cs (1)
135
yield return ParameterValueResult(completion.Label, completion.
InsertText
?? completion.Label, completion.Documentation ?? completion.Detail ?? completion.Label);
shells\ZshShellProvider.cs (3)
350
if (staticCompletions.Any(c => c.
InsertText
is not null || c.Detail is not null || c.Documentation is not null))
357
var insertText = completion.
InsertText
?? completion.Label;
368
return [$"({string.Join(" ", staticCompletions.Select(c => SanitizeValue(c.
InsertText
?? c.Label)))})"];