280 references to LocalizableStrings
Microsoft.TemplateEngine.Cli (280)
ChoiceTemplateParameter.cs (7)
115
LocalizableStrings
.ParseChoiceTemplateOption_Error_InvalidDefaultValue,
123
argumentResult.AddError(string.Format(
LocalizableStrings
.ParseTemplateOption_Error_MissingDefaultValue, or.IdentifierToken?.Value));
134
LocalizableStrings
.ParseChoiceTemplateOption_Error_InvalidDefaultIfNoOptionValue,
142
argumentResult.AddError(string.Format(
LocalizableStrings
.ParseTemplateOption_Error_MissingDefaultIfNoOptionValue, or.IdentifierToken?.Value));
148
argumentResult.AddError(string.Format(
LocalizableStrings
.ParseTemplateOption_Error_InvalidCount, or.IdentifierToken?.Value, argumentResult.Tokens.Count));
157
LocalizableStrings
.ParseChoiceTemplateOption_Error_InvalidArgument,
227
LocalizableStrings
.ParseChoiceTemplateOption_ErrorText_InvalidChoiceValue,
CliConsoleFormatter.cs (2)
41
textWriter.WriteLine(string.Format(
LocalizableStrings
.GenericError, message));
45
textWriter.WriteLine(string.Format(
LocalizableStrings
.GenericWarning, message));
CliTemplateParameter.cs (6)
336
LocalizableStrings
.ParseTemplateOption_Error_InvalidDefaultValue,
346
argumentResult.AddError(string.Format(
LocalizableStrings
.ParseTemplateOption_Error_MissingDefaultValue, or.IdentifierToken?.Value));
358
LocalizableStrings
.ParseTemplateOption_Error_InvalidDefaultIfNoOptionValue,
365
argumentResult.AddError(string.Format(
LocalizableStrings
.ParseTemplateOption_Error_MissingDefaultIfNoOptionValue, or.IdentifierToken?.Value));
377
LocalizableStrings
.ParseTemplateOption_Error_InvalidArgument,
386
argumentResult.AddError(string.Format(
LocalizableStrings
.ParseTemplateOption_Error_InvalidCount, or.IdentifierToken?.Value, argumentResult.Tokens.Count));
Commands\AliasAssignmentCoordinator.cs (4)
31
errors.Add(string.Format(
LocalizableStrings
.AliasAssignmentCoordinator_Error_NameShouldNotHaveColon, parameter.Name));
85
errors.Add(string.Format(
LocalizableStrings
.AliasAssignmentCoordinator_Error_ShortAlias, parameter.Name, fullShortNameOverride, qualifiedShortNameOverride));
129
errors.Add(string.Format(
LocalizableStrings
.AliasAssignmentCoordinator_Error_LongAlias, parameter.Name, $"--{longName}", $"--param:{longName}"));
161
Reporter.Verbose.WriteLine(string.Format(
LocalizableStrings
.AliasAssignmentCoordinator_Error_ShortAlias, parameter.Name, shortName, qualifiedShortName));
Commands\BaseCommand.cs (11)
127
Reporter.Output.WriteLine(
LocalizableStrings
.Commands_TemplateShortNameCommandConflict_Info, usedCommandAlias);
146
LocalizableStrings
.Commands_Warning_DeprecatedCommand,
150
Reporter.Output.WriteLine(
LocalizableStrings
.Commands_Warning_DeprecatedCommand_Info.Yellow());
207
Reporter.Output.WriteLine(
LocalizableStrings
.CurrentConfiguration);
215
.DefineColumn(mp => mp.Id.ToString(),
LocalizableStrings
.MountPointFactories, showAlways: true)
216
.DefineColumn(mp => mp.GetType().FullName ?? string.Empty,
LocalizableStrings
.Type, showAlways: true)
217
.DefineColumn(mp => mp.GetType().GetTypeInfo().Assembly.FullName ?? string.Empty,
LocalizableStrings
.Assembly, showAlways: true);
226
.DefineColumn(g => g.Id.ToString(),
LocalizableStrings
.Generators, showAlways: true)
227
.DefineColumn(g => g.GetType().FullName ?? string.Empty,
LocalizableStrings
.Type, showAlways: true)
228
.DefineColumn(g => g.GetType().GetTypeInfo().Assembly.FullName ?? string.Empty,
LocalizableStrings
.Assembly, showAlways: true);
291
Reporter.Error.WriteLine(
LocalizableStrings
.BaseCommand_ExitCodeHelp, (int)returnCode);
Commands\create\InstantiateCommand.cs (27)
96
string.Format(
LocalizableStrings
.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().Red());
114
reporter.WriteLine(
LocalizableStrings
.AmbiguousTemplatesHeader.Bold().Red());
120
.DefineColumn(t => t.GroupIdentity ?? t.Templates[0].Identity, out object? identityColumn,
LocalizableStrings
.ColumnNameIdentity, showAlways: true)
121
.DefineColumn(t => t.Name,
LocalizableStrings
.ColumnNameTemplateName, shrinkIfNeeded: true, minWidth: 15, showAlways: true)
122
.DefineColumn(t => string.Join(",", t.ShortNames),
LocalizableStrings
.ColumnNameShortName, showAlways: true)
123
.DefineColumn(t => string.Join(",", t.Languages),
LocalizableStrings
.ColumnNameLanguage, showAlways: true)
124
.DefineColumn(t => string.Join(",", t.Authors),
LocalizableStrings
.ColumnNameAuthor, showAlways: true, shrinkIfNeeded: true, minWidth: 10)
125
.DefineColumn(t => Task.Run(() => GetTemplatePackagesList(t)).GetAwaiter().GetResult(),
LocalizableStrings
.ColumnNamePackage, showAlways: true)
129
reporter.WriteLine(
LocalizableStrings
.AmbiguousTemplatesMultiplePackagesHint.Bold().Red());
142
environmentSettings.Host.Logger.LogWarning(
LocalizableStrings
.InstantiateCommand_Warning_FailedToGetTemplatePackageForTemplateGroup, templateGroup.GroupIdentity);
296
reporter.WriteLine(
LocalizableStrings
.AmbiguousTemplatesHeader.Bold().Red());
303
.DefineColumn(t => t.Identity, out object? identityColumn,
LocalizableStrings
.ColumnNameIdentity, showAlways: true)
304
.DefineColumn(t => t.Name,
LocalizableStrings
.ColumnNameTemplateName, shrinkIfNeeded: true, minWidth: 15, showAlways: true)
305
.DefineColumn(t => string.Join(",", t.ShortNameList),
LocalizableStrings
.ColumnNameShortName, showAlways: true)
306
.DefineColumn(t => t.GetLanguage() ?? string.Empty,
LocalizableStrings
.ColumnNameLanguage, showAlways: true)
307
.DefineColumn(t => t.Precedence.ToString(), out object? precedenceColumn,
LocalizableStrings
.ColumnNamePrecedence, showAlways: true)
308
.DefineColumn(t => t.Author ?? string.Empty,
LocalizableStrings
.ColumnNameAuthor, showAlways: true, shrinkIfNeeded: true, minWidth: 10)
309
.DefineColumn(t => Task.Run(() => GetTemplatePackage(t)).GetAwaiter().GetResult(),
LocalizableStrings
.ColumnNamePackage, showAlways: true)
314
reporter.WriteLine(
LocalizableStrings
.AmbiguousTemplatesMultiplePackagesHint.Bold().Red());
320
reporter.WriteLine(string.Format(
LocalizableStrings
.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().Red());
335
environmentSettings.Host.Logger.LogWarning(
LocalizableStrings
.InstantiateCommand_Warning_FailedToGetTemplatePackageForTemplate, template.Identity);
420
Reporter.Error.WriteLine(
LocalizableStrings
.GenericWarning, e.Message);
441
reporter.WriteLine(
LocalizableStrings
.InstantiateCommand_Info_TypoCorrection_Templates);
469
reporter.WriteLine(
LocalizableStrings
.InstantiateCommand_Info_TypoCorrection_Subcommands);
486
reporter.WriteLine(
LocalizableStrings
.Generic_CommandHints_List_Template, instantiateArgs.ShortName);
495
reporter.WriteLine(
LocalizableStrings
.Generic_CommandHints_List);
507
reporter.WriteLine(
LocalizableStrings
.Generic_CommandHints_Search);
Commands\create\InstantiateCommand.NoMatchHandling.cs (8)
94
StringBuilder invalidParamsErrorText = new(
LocalizableStrings
.InvalidCommandOptions);
101
invalidParamsErrorText.Indent(1).AppendFormat(
LocalizableStrings
.InvalidParameterNameDetail, invalidParam.InputFormat);
108
invalidParamsErrorText.Indent(1).AppendFormat(
LocalizableStrings
.InvalidParameterDetail, invalidParam.InputFormat, invalidParam.SpecifiedValue);
118
invalidParamsErrorText.Indent(1).AppendFormat(
LocalizableStrings
.InvalidParameterDefault, invalidParam.InputFormat, invalidParam.SpecifiedValue);
147
reporter.WriteLine(string.Format(
LocalizableStrings
.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().Red());
154
reporter.WriteLine(
LocalizableStrings
.InvalidParameterTemplateHint);
198
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red());
209
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.TemplateOptions_Error_AllowedValuesForOptionList, token.Value, allowedValues));
Commands\create\InstantiateCommand.TabCompletion.cs (1)
92
Reporter.Error.WriteLine(
LocalizableStrings
.GenericWarning, e.Message);
Commands\create\InvalidTemplateOptionResult.cs (2)
119
error.AppendFormat(
LocalizableStrings
.InvalidParameterDetail, InputFormat, SpecifiedValue);
155
text.Append(' ').Append(
LocalizableStrings
.PossibleValuesHeader);
Commands\create\TemplateCommand.cs (4)
242
reporter.WriteLine(
LocalizableStrings
.TemplateCommand_DisplayConstraintResults_Warning, templateArgs.Template.Name);
246
reporter.WriteLine(
LocalizableStrings
.TemplateCommand_DisplayConstraintResults_Error, templateArgs.Template.Name);
257
reporter.WriteLine(
LocalizableStrings
.TemplateCommand_DisplayConstraintResults_Hint, ForceOption.Name);
262
reporter.WriteLine(
LocalizableStrings
.TemplateCommand_DisplayConstraintResults_Hint_TemplateNotUsable);
Commands\Extensions.cs (1)
75
LocalizableStrings
.Commands_Validator_WrongArgumentValue,
Commands\InvalidTemplateParametersException.cs (1)
23
stringBuilder.Append(string.Format(
LocalizableStrings
.Exception_InvalidTemplateParameters_MessageHeader, Template.Identity, Template.ShortNameList[0]));
HostSpecificDataLoader.cs (2)
56
LocalizableStrings
.HostSpecificDataLoader_Warning_FailedToRead,
83
LocalizableStrings
.HostSpecificDataLoader_Warning_FailedToReadFromFile,
IReporterExtensions.cs (3)
32
reporter.WriteLine(
LocalizableStrings
.CommandOutput);
50
reporter.WriteLine(string.IsNullOrWhiteSpace(output) ?
LocalizableStrings
.Generic_Empty : output);
59
reporter.WriteLine(string.IsNullOrWhiteSpace(output) ?
LocalizableStrings
.Generic_Empty : output);
LocalizableStrings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.TemplateEngine.Cli.LocalizableStrings", typeof(
LocalizableStrings
).Assembly);
PostActionDispatcher.cs (16)
89
Reporter.Output.WriteLine(
LocalizableStrings
.ProcessingPostActions);
101
Reporter.Output.WriteLine(
LocalizableStrings
.ActionWouldHaveBeenTakenAutomatically);
114
Reporter.Error.WriteLine(
LocalizableStrings
.PostActionDispatcher_Error_NotSupported, action.ActionId);
117
Reporter.Error.WriteLine(
LocalizableStrings
.PostActionDescription, action.Description);
127
Reporter.Error.WriteLine(
LocalizableStrings
.PostActionDispatcher_Error_RunScriptNotAllowed);
130
Reporter.Error.WriteLine(
LocalizableStrings
.PostActionDescription, action.Description);
180
Reporter.Output.WriteLine(
LocalizableStrings
.PostActionPromptHeader);
183
Reporter.Output.WriteLine(
LocalizableStrings
.PostActionDescription, action.Description);
189
Reporter.Output.WriteLine(string.Format(
LocalizableStrings
.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
191
Reporter.Output.WriteLine(
LocalizableStrings
.PostActionPromptRequest, YesAnswer, NoAnswer);
206
Reporter.Output.WriteLine(
LocalizableStrings
.PostActionInvalidInputRePrompt, input, YesAnswer, NoAnswer);
227
Reporter.Error.WriteLine(
LocalizableStrings
.PostActionFailedInstructionHeader);
233
Reporter.Error.WriteLine(
LocalizableStrings
.PostActionFailedInstructionHeader);
234
Reporter.Verbose.WriteLine(
LocalizableStrings
.Generic_Details, e.ToString());
250
stream.WriteLine(
LocalizableStrings
.PostActionInstructions, action.ManualInstructions);
256
stream.WriteLine(string.Format(
LocalizableStrings
.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (14)
88
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotConfigured, JsonFileNameArgument));
94
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotBoolean, DetectRepoRoot));
100
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllDirectoriesInSearch));
108
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllParentDirectoriesInSearch));
124
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowFileCreationArgument));
130
Reporter.Error.WriteLine(
LocalizableStrings
.PostAction_ModifyJson_Error_NoJsonFile);
141
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_MultipleJsonFiles, jsonFileName));
168
Reporter.Output.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Succeeded, jsonFileName));
180
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_NullJson, fileContent));
186
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowPathCreationArgument));
194
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, propertyPath));
259
Reporter.Verbose.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Verbose_AttemptingToFindJsonFile, matchPattern, directory));
312
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyNameArgument));
318
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyValueArgument));
PostActionProcessors\ChmodPostActionProcessor.cs (4)
55
Reporter.Error.WriteLine(
LocalizableStrings
.UnableToSetPermissions, entry.Key, file);
65
Reporter.Error.WriteLine(
LocalizableStrings
.UnableToSetPermissions, entry.Key, file);
71
Reporter.Error.WriteLine(
LocalizableStrings
.UnableToSetPermissions, entry.Key, file);
72
Reporter.Verbose.WriteLine(
LocalizableStrings
.Generic_Details, ex.ToString());
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (3)
18
Reporter.Output.WriteLine(
LocalizableStrings
.PostActionDescription, actionConfig.Description);
19
Reporter.Output.WriteLine(
LocalizableStrings
.PostActionInstructions, actionConfig.ManualInstructions);
24
Reporter.Output.WriteLine(string.Format(
LocalizableStrings
.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\ProcessStartPostActionProcessor.cs (7)
21
Reporter.Error.WriteLine(
LocalizableStrings
.PostAction_ProcessStartProcessor_Error_ConfigMissingExecutable);
50
Reporter.Output.WriteLine(
LocalizableStrings
.RunningCommand, command);
66
Reporter.Error.WriteLine(
LocalizableStrings
.CommandFailed);
75
Reporter.Error.WriteLine(
LocalizableStrings
.CommandFailed);
82
Reporter.Output.WriteLine(
LocalizableStrings
.CommandSucceeded);
88
Reporter.Error.WriteLine(
LocalizableStrings
.CommandFailed);
91
Reporter.Verbose.WriteLine(
LocalizableStrings
.Generic_Details, ex.ToString());
TabularOutput\TemplateGroupDisplay.cs (6)
234
.DefineColumn(t => t.Name, out object? nameColumn,
LocalizableStrings
.ColumnNameTemplateName, shrinkIfNeeded: true, minWidth: 15, showAlways: true)
235
.DefineColumn(t => t.ShortNames,
LocalizableStrings
.ColumnNameShortName, showAlways: true)
236
.DefineColumn(t => t.Languages, out object? languageColumn,
LocalizableStrings
.ColumnNameLanguage, TabularOutputSettingsColumnNames.Language, defaultColumn: true)
237
.DefineColumn(t => t.Type,
LocalizableStrings
.ColumnNameType, TabularOutputSettingsColumnNames.Type, defaultColumn: false)
238
.DefineColumn(t => t.Author,
LocalizableStrings
.ColumnNameAuthor, TabularOutputSettingsColumnNames.Author, defaultColumn: false, shrinkIfNeeded: true, minWidth: 10)
239
.DefineColumn(t => t.Classifications, out object? tagsColumn,
LocalizableStrings
.ColumnNameTags, TabularOutputSettingsColumnNames.Tags, defaultColumn: true)
TemplateInvoker.cs (21)
109
ChangeKind.Create =>
LocalizableStrings
.Create,
110
ChangeKind.Change =>
LocalizableStrings
.Change,
111
ChangeKind.Delete =>
LocalizableStrings
.Delete,
112
ChangeKind.Overwrite =>
LocalizableStrings
.Overwrite,
113
_ =>
LocalizableStrings
.UnknownChangeKind
139
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.InvalidNameParameter, printableChars, nonPrintableChars).Bold().Red());
202
Reporter.Output.WriteLine(
LocalizableStrings
.CreateSuccessful, resultTemplateName);
206
Reporter.Output.WriteLine(
LocalizableStrings
.FileActionsWouldHaveBeenTaken);
218
Reporter.Output.WriteLine(
LocalizableStrings
.ThirdPartyNotices, templateArgs.Template.ThirdPartyNotices);
224
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.CreateFailed, resultTemplateName, instantiateResult.ErrorMessage).Bold().Red());
235
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.MissingRequiredParameter, fixedMessage, resultTemplateName).Bold().Red());
239
Reporter.Error.WriteLine(
LocalizableStrings
.TemplateCreator_Error_TemplateNotFound.Bold().Red());
241
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateCreator_Hint_RebuildCache);
257
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateCreator_Hint_Uninstall);
260
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateCreator_Hint_Install);
268
Reporter.Error.WriteLine($"{
LocalizableStrings
.InvalidCommandOptions}: {instantiateResult.ErrorMessage}".Bold().Red());
269
Reporter.Error.WriteLine(
LocalizableStrings
.RunHelpForInformationAboutAcceptedParameters);
277
Reporter.Error.WriteLine(
LocalizableStrings
.DestructiveChangesNotification.Bold().Red());
292
LocalizableStrings
.RerunCommandAndPassForceToCreateAnyway, SharedOptionsFactory.ForceOptionName).Bold().Red()
303
Reporter.Error.WriteLine(
LocalizableStrings
.OperationCancelled.Bold().Red());
306
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.UnexpectedResult, Enum.GetName(typeof(CreationResultStatus), instantiateResult.Status), instantiateResult.ErrorMessage).Bold().Red());
TemplateListCoordinator.cs (13)
54
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatesFoundMatchingInputParameters, GetInputParametersString(args));
73
Reporter.Output.WriteLine(
LocalizableStrings
.NoTemplatesFound);
76
Reporter.Output.WriteLine(
LocalizableStrings
.Generic_CommandHints_Search);
90
LocalizableStrings
.Generic_Info_NoMatchingTemplates,
99
LocalizableStrings
.TemplatesNotValidGivenTheSpecifiedFilter,
111
LocalizableStrings
.TemplateListCoordinator_Error_FailedConstraints,
119
Reporter.Error.WriteLine(
LocalizableStrings
.Generic_CommandHints_Search);
153
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateInformationCoordinator_DotnetNew_Description, Example.For<NewCommand>(args.ParseResult));
157
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateInformationCoordinator_DotnetNew_TemplatesHeader, Example.For<NewCommand>(args.ParseResult));
164
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateInformationCoordinator_DotnetNew_ExampleHeader);
172
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateInformationCoordinator_DotnetNew_DisplayOptionsHint);
179
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateInformationCoordinator_DotnetNew_ListTemplatesHint);
186
Reporter.Output.WriteLine(
LocalizableStrings
.TemplateInformationCoordinator_DotnetNew_SearchTemplatesHint);
TemplatePackageCoordinator.cs (52)
70
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Error_PackageForTemplateNotFound, args.Template.Identity);
96
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Error_PackageForTemplateNotFound, template.Identity);
146
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateAvailable, displayString);
148
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
166
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_BuiltInCheck_Info_BuiltInPackageAvailable, $"{packageId}@{version}", provider);
167
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage);
215
Reporter.Output.WriteLine(string.Format(
LocalizableStrings
.Colon_Separator_Deprecated, split[0], split.Length > 1 ? split[1] : string.Empty).Yellow());
226
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_Error_FoundNoPackagesToInstall);
238
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_Error_SameInstallRequests, installRequest.PackageIdentifier);
242
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_Info_PackagesToBeInstalled);
312
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_PackagesToBeUpdated);
343
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_AllPackagesAreUpToDate);
375
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Info_Success, uninstallResult.TemplatePackage.DisplayName);
379
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Error_GenericError, uninstallResult.TemplatePackage.DisplayName, uninstallResult.ErrorMessage);
470
LocalizableStrings
.Generic_Info_NoMatchingTemplatePackage.Bold().Red(),
479
WriteIfNotNull(
LocalizableStrings
.DetailsCommand_Property_Version, packageMetadata.PackageVersion.ToString(), reporter, 1);
482
WriteIfNotNull(
LocalizableStrings
.DetailsCommand_Property_PrefixReserved, packageMetadata.PrefixReserved.ToString(), reporter, 1);
484
WriteIfNotNull(
LocalizableStrings
.DetailsCommand_Property_Description, packageMetadata.Description, reporter, 1);
487
reporter.WriteLine($"{
LocalizableStrings
.DetailsCommand_Property_SourceFeed}: {sourceFeed}".Indent(1));
491
reporter.WriteLine($"{
LocalizableStrings
.DetailsCommand_Property_Authors}:".Indent(1));
502
reporter.WriteLine($"{
LocalizableStrings
.DetailsCommand_Property_Owners}:".Indent(1));
511
reporter.WriteLine($"{
LocalizableStrings
.DetailsCommand_Property_LicenseMetadata}:".Indent(1));
512
WriteIfNotNull(
LocalizableStrings
.DetailsCommand_Property_License, packageMetadata.License, reporter, 2);
518
$"{
LocalizableStrings
.DetailsCommand_Property_LicenseExpression}: ".Indent(1) +
526
$"{
LocalizableStrings
.DetailsCommand_Property_LicenseUrl}: ".Indent(2) +
534
$"{
LocalizableStrings
.DetailsCommand_Property_RepoUrl}: {projectUrl}".Indent(2));
548
reporter.WriteLine($"{
LocalizableStrings
.DetailsCommand_Property_Authors}:".Indent(1));
563
$"{
LocalizableStrings
.DetailsCommand_Property_RepoUrl}: {nuGetSource}".Indent(1));
569
reporter.WriteLine($"{
LocalizableStrings
.DetailsCommand_Property_Templates}:".Indent(1));
576
.DefineColumn(t => t.Name,
LocalizableStrings
.ColumnNameTemplateName, minWidth: 15, showAlways: true, shrinkIfNeeded: true)
577
.DefineColumn(t => t.ShortNames,
LocalizableStrings
.ColumnNameShortName, minWidth: 15, showAlways: true)
578
.DefineColumn(t => t.Type,
LocalizableStrings
.ColumnNameType, minWidth: 15, showAlways: true)
579
.DefineColumn(t => t.Classifications,
LocalizableStrings
.ColumnNameTags, minWidth: 15, showAlways: true, shrinkIfNeeded: true)
580
.DefineColumn(t => t.Languages,
LocalizableStrings
.ColumnNameLanguage, minWidth: 15, showAlways: true);
593
Reporter.Verbose.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Verbose_NuGetCredentialServiceError, ex.ToString());
629
reporter.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_Info_OverrideNotice);
630
reporter.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_Info_PackageIsAvailable);
639
reporter.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_Info_UseForceToOverride, SharedOptionsFactory.ForceOptionName);
717
LocalizableStrings
.TemplatePackageCoordinator_Error_PackageNotFound,
725
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Error_TemplateIncludedToPackages, notFoundPackage);
732
LocalizableStrings
.TemplatePackageCoordinator_Error_PackageNameContainsTemplates,
736
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Error_UninstallCommandHeader);
757
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader);
766
Reporter.Error.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Error_ListPackagesHeader);
822
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_InvalidNuGetFeeds,
830
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_PackageNotFound,
837
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_PackageNotSupported,
844
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_GenericError,
869
throw new Exception(string.Format(
LocalizableStrings
.DetailsCommand_UnableToLoadResources, currentDirectory), ex);
876
throw new Exception(
LocalizableStrings
.DetailsCommand_NoNuGetSources);
896
Reporter.Output.WriteLine(string.Format(
LocalizableStrings
.DetailsCommand_UnableToLoadResource, source));
905
throw new Exception(
LocalizableStrings
.DetailsCommand_NoNuGetSources);
TemplatePackageDisplay.cs (42)
26
{ 0,
LocalizableStrings
.TemplatePackageCoordinator_VulnerabilitySeverity_Low.Cyan() },
27
{ 1,
LocalizableStrings
.TemplatePackageCoordinator_VulnerabilitySeverity_Moderate.Blue() },
28
{ 2,
LocalizableStrings
.TemplatePackageCoordinator_VulnerabilitySeverity_High.Yellow() },
29
{ 3,
LocalizableStrings
.TemplatePackageCoordinator_VulnerabilitySeverity_Critical.Red() },
52
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateAvailable, displayString);
54
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
72
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_BuiltInCheck_Info_BuiltInPackageAvailable, $"{packageId}@{version}", provider);
73
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_BuiltInCheck_Info_UninstallPackage);
107
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Info_Success, result.TemplatePackage.DisplayName);
117
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Warning_No_Templates_In_Package, result.TemplatePackage.DisplayName);
122
_reporterOutput.WriteLine(string.Format(
LocalizableStrings
.TemplatePackageCoordinator_Download_VulnerablePackage));
133
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_InvalidNuGetFeeds,
140
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_PackageNotFound,
146
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_DownloadFailed,
152
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_UnsupportedRequest,
158
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_AlreadyInstalled,
160
_reporterError.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_AlreadyInstalled_Hint, SharedOptionsFactory.ForceOptionName);
167
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_UninstallFailed,
173
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_InvalidPackage,
183
LocalizableStrings
.TemplatePackageCoordinator_Download_Error_VulnerablePackage,
187
LocalizableStrings
.TemplatePackageCoordinator_Install_Error_VulnerablePackageTip,
195
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_VulnerablePackage,
199
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_VulnerablePackageTip,
215
LocalizableStrings
.TemplatePackageCoordinator_lnstall_Error_GenericError,
229
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Info_InstalledItems);
233
Reporter.Output.WriteLine(
LocalizableStrings
.NoItems);
242
Reporter.Output.WriteLine($"{
LocalizableStrings
.Version} {managedSource.Version}".Indent(level: 2));
248
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Info_DetailsHeader.Indent(level: 2));
258
Reporter.Output.WriteLine($"{
LocalizableStrings
.Templates}:".Indent(level: 2));
266
Reporter.Output.WriteLine($"{
LocalizableStrings
.TemplatePackageCoordinator_Uninstall_Info_UninstallCommandHint}".Indent(level: 2));
285
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateAvailablePackages);
295
.DefineColumn(r => r.Identifier, out object? packageColumn,
LocalizableStrings
.ColumnNamePackage, showAlways: true)
296
.DefineColumn(r => r.CurrentVersion ?? string.Empty,
LocalizableStrings
.ColumnNameCurrentVersion, showAlways: true)
297
.DefineColumn(r => r.LatestVersion ?? string.Empty,
LocalizableStrings
.ColumnNameLatestVersion, showAlways: true)
302
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateSingleCommandHeader);
314
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Update_Info_UpdateAllCommandHeader);
342
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_InvalidNuGetFeeds,
350
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_PackageNotFound,
357
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_PackageNotSupported,
364
LocalizableStrings
.TemplatePackageCoordinator_UpdateCheck_Error_VulnerablePackage,
373
LocalizableStrings
.TemplatePackageCoordinator_Update_Error_GenericError,
404
_reporterOutput.WriteLine(
LocalizableStrings
.TemplatePackageCoordinator_Install_ConstraintsNotice);
TemplateSearch\CliTemplateSearchCoordinator.cs (22)
46
Reporter.Output.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Info_SearchInProgress);
60
Reporter.Error.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Error_NoSources.Bold().Red());
68
Reporter.Error.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Info_MatchesFromSource, result.Provider.Factory.DisplayName);
69
Reporter.Error.WriteLine(string.Format(
LocalizableStrings
.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold());
73
Reporter.Output.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Info_MatchesFromSource, result.Provider.Factory.DisplayName);
85
LocalizableStrings
.Generic_Info_NoMatchingTemplates,
94
Reporter.Output.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Info_InstallHelp);
100
Reporter.Output.WriteLine(
LocalizableStrings
.Generic_ExampleHeader);
182
Reporter.Output.WriteLine(
LocalizableStrings
.TemplatesFoundMatchingInputParameters, GetInputParametersString(commandArgs));
193
.DefineColumn(r => r.TemplateGroupInfo.Name, out object? nameColumn,
LocalizableStrings
.ColumnNameTemplateName, showAlways: true, shrinkIfNeeded: true, minWidth: 15)
194
.DefineColumn(r => r.TemplateGroupInfo.ShortNames,
LocalizableStrings
.ColumnNameShortName, showAlways: true)
195
.DefineColumn(r => r.TemplateGroupInfo.Author,
LocalizableStrings
.ColumnNameAuthor, TabularOutputSettingsColumnNames.Author, defaultColumn: false, shrinkIfNeeded: true, minWidth: 12)
196
.DefineColumn(r => r.TemplateGroupInfo.Languages,
LocalizableStrings
.ColumnNameLanguage, TabularOutputSettingsColumnNames.Language, defaultColumn: true)
197
.DefineColumn(r => r.TemplateGroupInfo.Type,
LocalizableStrings
.ColumnNameType, TabularOutputSettingsColumnNames.Type, defaultColumn: false)
198
.DefineColumn(r => r.TemplateGroupInfo.Classifications,
LocalizableStrings
.ColumnNameTags, TabularOutputSettingsColumnNames.Tags, defaultColumn: false, shrinkIfNeeded: true, minWidth: 10)
199
.DefineColumn(r => GetPackageInfo(r.PackageName, r.PackageOwners), out object? packageColumn,
LocalizableStrings
.ColumnNamePackageNameAndOwners, showAlways: true)
200
.DefineColumn(r => GetReservedMark(r.Reserved),
LocalizableStrings
.ColumnNameTrusted, showAlways: true, textAlign: TextAlign.Center)
201
.DefineColumn(r => r.PrintableTotalDownloads, out object? downloadsColumn,
LocalizableStrings
.ColumnNameTotalDownloads, showAlways: true, textAlign: TextAlign.Center);
256
Reporter.Error.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Error_NoTemplateName.Red().Bold());
257
Reporter.Error.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Info_SearchHelp, string.Join(", ", FilterOptions.GetAllNames(NewSearchCommandDefinition.HasSupportedPackageFilterOption).Select(static optionName => $"'{optionName}'")));
258
Reporter.Error.WriteLine(
LocalizableStrings
.Generic_ExamplesHeader);
283
Reporter.Error.WriteLine(
LocalizableStrings
.CliTemplateSearchCoordinator_Error_TemplateNameIsTooShort.Bold().Red());