21 references to AddCommandStrings
aspire (19)
Commands\AddCommand.cs (18)
31
: base("add",
AddCommandStrings
.Description, features, updateNotifier, executionContext, interactionService)
53
integrationArgument.Description =
AddCommandStrings
.IntegrationArgumentDescription;
58
projectOption.Description =
AddCommandStrings
.ProjectArgumentDescription;
62
versionOption.Description =
AddCommandStrings
.VersionArgumentDescription;
66
sourceOption.Description =
AddCommandStrings
.SourceArgumentDescription;
97
AddCommandStrings
.SearchingForAspirePackages,
130
throw new EmptyChoicesException(
AddCommandStrings
.NoIntegrationPackagesFound);
139
InteractionService.DisplayError(
AddCommandStrings
.NoPackagesFound);
164
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
168
AddCommandStrings
.AddingAspireIntegration,
191
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageInstallationFailed, addPackageResult));
196
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
217
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.ErrorOccurredWhileAddingPackage, ex.Message));
231
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
255
InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.NoPackagesMatchedSearchTerm, searchTerm));
302
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
363
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
380
AddCommandStrings
.SelectAnIntegrationToAdd,
Resources\AddCommandStrings.Designer.cs (1)
36
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.AddCommandStrings", typeof(
AddCommandStrings
).Assembly);
Aspire.Cli.Tests (2)
Commands\AddCommandTests.cs (2)
445
Assert.Contains(
AddCommandStrings
.NoIntegrationPackagesFound, displayedErrorMessage);
519
Assert.Equal(string.Format(
AddCommandStrings
.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage);