1 override of Choices
Microsoft.TemplateEngine.Cli (1)
Commands\create\CombinedChoiceTemplateParameter.cs (1)
28internal override IReadOnlyDictionary<string, ParameterChoice> Choices => _combinedParameters;
13 references to Choices
Microsoft.TemplateEngine.Cli (13)
ChoiceTemplateParameter.cs (6)
37_choices = choiceTemplateParameter.Choices.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparer.OrdinalIgnoreCase); 55if (Choices.Count > 2) 57o.Option.HelpName = $"{string.Join("|", Choices.Keys.Take(2))}|..."; 85option.FromAmongCaseInsensitive(Choices.Keys.ToArray(), allowedHiddenValue: string.Empty); 211foreach (string choiceValue in parameter.Choices.Keys) 229string.Join(",", parameter.Choices.Keys.Select(key => $"'{key}'")));
CliTemplateParameter.cs (2)
473int longestChoiceLength = choice.Choices.Keys.Max(x => x.Length); 474foreach (KeyValuePair<string, ParameterChoice> choiceInfo in choice.Choices)
Commands\create\CombinedChoiceTemplateParameter.cs (4)
19foreach (var choice in parameter.Choices) 36if (parameter.Choices == null) 38throw new ArgumentException($"{nameof(parameter)} should have {nameof(parameter.Choices)}"); 41foreach (var choice in parameter.Choices)
Commands\create\InvalidTemplateOptionResult.cs (1)
138foreach (var choice in choiceParam.Choices)