22 references to ShortNames
Microsoft.TemplateEngine.Cli (22)
Commands\create\InstantiateCommand.cs (3)
122.DefineColumn(t => string.Join(",", t.ShortNames), LocalizableStrings.ColumnNameShortName, showAlways: true) 188IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateArgs.ShortName)); 433.SelectMany(g => g.ShortNames);
Commands\create\InstantiateCommand.Help.cs (4)
40IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName)); 84ShowUsage(instantiateCommandArgs.NewOrInstantiateCommand, templateGroup.ShortNames, context); 220.WithArguments(templateGroup.ShortNames[0]) 255.WithArguments(templateGroup.ShortNames[0])
Commands\create\InstantiateCommand.NoMatchHandling.cs (2)
152if (templateGroup.ShortNames.Any()) 157.WithArguments(templateGroup.ShortNames[0]);
Commands\create\InstantiateCommand.TabCompletion.cs (5)
23.Select(g => new CompletionItem(g.ShortNames[0], documentation: g.Description)) 30templateGroups.Where(t => t.ShortNames.Any(sn => sn.StartsWith(templateName, StringComparison.OrdinalIgnoreCase))); 33.Select(g => new CompletionItem(g.ShortNames.First(sn => sn.StartsWith(templateName, StringComparison.OrdinalIgnoreCase)), documentation: g.Description)) 48foreach (TemplateGroup templateGroup in templateGroups.Where(template => template.ShortNames.Contains(args.ShortName))) 120if (templateGroups.Any(template => template.ShortNames.Contains(instantiateArgs.ShortName)))
Commands\create\TemplateCommand.cs (2)
40templateGroup.ShortNames[0], 47foreach (var item in templateGroup.ShortNames.Skip(1))
Commands\NewCommand.cs (1)
36if (templateGroups.Any(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName)))
TabularOutput\TemplateGroupDisplay.cs (1)
213ShortNames = string.Join(",", templateGroup.ShortNames),
TemplateResolution\CliFilters.cs (4)
13/// The fields to be compared are <see cref="TemplateGroup.ShortNames"/> and they should exactly match user input. 25foreach (string shortName in templateGroup.ShortNames) 38/// The fields to be compared are <see cref="TemplateGroup.Name"/> and <see cref="TemplateGroup.ShortNames"/>. 60foreach (string shortName in templateGroup.ShortNames)