2 writes to ShortName
Microsoft.TemplateEngine.Cli (2)
Commands\create\InstantiateCommandArgs.cs (2)
31ShortName = parseResult.GetValue(command.Definition.ShortNameArgument); 59ShortName = shortName;
24 references to ShortName
Microsoft.TemplateEngine.Cli (24)
Commands\create\InstantiateCommand.cs (12)
96string.Format(LocalizableStrings.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().Red()); 171if (string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 181createActivity?.DisplayName = $"Invoke '{instantiateArgs.ShortName}'"; 188IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateArgs.ShortName)); 427if (string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 437IEnumerable<string> possibleTemplateMatches = TypoCorrection.GetSimilarTokens(possibleTemplates, instantiateArgs.ShortName); 466IEnumerable<string> possibleSubcommandsMatches = TypoCorrection.GetSimilarTokens(possibleSubcommands, instantiateArgs.ShortName); 484if (!string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 486reporter.WriteLine(LocalizableStrings.Generic_CommandHints_List_Template, instantiateArgs.ShortName); 491.WithArguments(instantiateArgs.ShortName)); 505if (!string.IsNullOrWhiteSpace(instantiateArgs.ShortName)) 512.WithArguments(instantiateArgs.ShortName));
Commands\create\InstantiateCommand.Help.cs (2)
22if (string.IsNullOrWhiteSpace(instantiateCommandArgs.ShortName)) 40IEnumerable<TemplateGroup> selectedTemplateGroups = allTemplateGroups.Where(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName));
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
189string 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)
34if (!string.IsNullOrWhiteSpace(ShortName)) 36tokens.Add(ShortName); 63if (!string.IsNullOrWhiteSpace(ShortName)) 65tokens.Add(ShortName);
Commands\NewCommand.cs (2)
36if (templateGroups.Any(template => template.ShortNames.Contains(instantiateCommandArgs.ShortName))) 45foreach (CompletionItem completion in InstantiateCommand.GetTemplateNameCompletions(instantiateCommandArgs.ShortName, templateGroups, environmentSettings))