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