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