1 write to InsertText
System.CommandLine (1)
Completions\CompletionItem.cs (1)
32InsertText = 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)
370var label = completion.InsertText ?? completion.Label;
shells\PowershellShellProvider.cs (1)
135yield return ParameterValueResult(completion.Label, completion.InsertText ?? completion.Label, completion.Documentation ?? completion.Detail ?? completion.Label);
shells\ZshShellProvider.cs (3)
350if (staticCompletions.Any(c => c.InsertText is not null || c.Detail is not null || c.Documentation is not null)) 357var insertText = completion.InsertText ?? completion.Label; 368return [$"({string.Join(" ", staticCompletions.Select(c => SanitizeValue(c.InsertText ?? c.Label)))})"];