22 references to ShortNames
Microsoft.TemplateEngine.Cli (22)
Commands\create\InstantiateCommand.cs (3)
151.DefineColumn(t => string.Join(",", t.ShortNames), LocalizableStrings.ColumnNameShortName, showAlways: true) 217IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateArgs.ShortName)); 462.SelectMany(g => g.ShortNames);
Commands\create\InstantiateCommand.Help.cs (4)
39IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName)); 83ShowUsage(instantiateCommandArgs.Command, templateGroup.ShortNames, context); 219.WithArgument(NewCommand.ShortNameArgument, templateGroup.ShortNames[0]) 254.WithArgument(NewCommand.ShortNameArgument, templateGroup.ShortNames[0])
Commands\create\InstantiateCommand.NoMatchHandling.cs (2)
151if (templateGroup.ShortNames.Any()) 156.WithArgument(NewCommand.ShortNameArgument, 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], 48foreach (var item in templateGroup.ShortNames.Skip(1))
Commands\NewCommand.cs (1)
133if (templateGroups.Any(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName)))
TabularOutput\TemplateGroupDisplay.cs (1)
212ShortNames = 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)