2 writes to ShortName
Microsoft.TemplateEngine.Cli (2)
Commands\create\InstantiateCommandArgs.cs (2)
14ShortName = parseResult.GetValue(InstantiateCommand.ShortNameArgument); 39ShortName = shortName;
31 references to ShortName
Microsoft.TemplateEngine.Cli (24)
Commands\create\InstantiateCommand.cs (12)
125string.Format(LocalizableStrings.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().Red()); 200if (string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 210createActivity?.DisplayName = $"Invoke '{instantiateArgs.ShortName}'"; 217IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateArgs.ShortName)); 456if (string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 466IEnumerable<string> possibleTemplateMatches = TypoCorrection.GetSimilarTokens(possibleTemplates, instantiateArgs.ShortName); 495IEnumerable<string> possibleSubcommandsMatches = TypoCorrection.GetSimilarTokens(possibleSubcommands, instantiateArgs.ShortName); 513if (!string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 515reporter.WriteLine(LocalizableStrings.Generic_CommandHints_List_Template, instantiateArgs.ShortName); 520.WithArgument(BaseListCommand.NameArgument, instantiateArgs.ShortName)); 534if (!string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 541.WithArgument(BaseSearchCommand.NameArgument, instantiateArgs.ShortName));
Commands\create\InstantiateCommand.Help.cs (2)
21if (string.IsNullOrWhiteSpace(instantiateCommandArgs.ShortName)) 39IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName));
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
187string baseInputParameters = $"'{args.ShortName}'";
Commands\create\InstantiateCommand.TabCompletion.cs (3)
48foreach (TemplateGroup templateGroup in templateGroups.Where(template => template.ShortNames.Contains(args.ShortName))) 120if (templateGroups.Any(template => template.ShortNames.Contains(instantiateArgs.ShortName))) 128foreach (CompletionItem completion in GetTemplateNameCompletions(instantiateArgs.ShortName, templateGroups, environmentSettings))
Commands\create\InstantiateCommandArgs.cs (4)
17if (!string.IsNullOrWhiteSpace(ShortName)) 19tokens.Add(ShortName); 42if (!string.IsNullOrWhiteSpace(ShortName)) 44tokens.Add(ShortName);
Commands\NewCommand.cs (2)
133if (templateGroups.Any(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName))) 142foreach (CompletionItem completion in InstantiateCommand.GetTemplateNameCompletions(instantiateCommandArgs.ShortName, templateGroups, environmentSettings))
Microsoft.TemplateEngine.Cli.UnitTests (7)
ParserTests\InstantiateTests.cs (1)
26Assert.Equal("console", args.ShortName);
ParserTests\InstantiateTests.Subcommand.cs (1)
25Assert.Equal("console", args.ShortName);
ParserTests\MiscTests.cs (2)
143Assert.Equal("console", args.ShortName); 163Assert.Equal("console", args.ShortName);
ParserTests\TabCompletionTests.cs (3)
469IEnumerable<string> result = InstantiateCommand.GetTemplateNameCompletions(args.ShortName, templateGroups, settings).Select(l => l.Label); 499IEnumerable<string> result = InstantiateCommand.GetTemplateNameCompletions(args.ShortName, templateGroups, settings).Select(l => l.Label); 601IEnumerable<string> result = InstantiateCommand.GetTemplateNameCompletions(args.ShortName, templateGroups, settings).Select(l => l.Label);