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,
123
throw new EmptyChoicesException(
AddCommandStrings
.NoIntegrationPackagesFound);
132
InteractionService.DisplayError(
AddCommandStrings
.NoPackagesFound);
157
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
161
AddCommandStrings
.AddingAspireIntegration,
184
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageInstallationFailed, addPackageResult));
189
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
210
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.ErrorOccurredWhileAddingPackage, ex.Message));
224
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
248
InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.NoPackagesMatchedSearchTerm, searchTerm));
295
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
350
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
367
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);