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;
114
AddCommandStrings
.SearchingForAspirePackages,
153
throw new EmptyChoicesException(
AddCommandStrings
.NoIntegrationPackagesFound);
162
InteractionService.DisplayError(
AddCommandStrings
.NoPackagesFound);
187
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
200
AddCommandStrings
.AddingAspireIntegration,
210
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageInstallationFailed, ExitCodeConstants.FailedToAddPackage));
214
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
237
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.ErrorOccurredWhileAddingPackage, ex.Message));
251
_ => throw new InvalidOperationException(
AddCommandStrings
.UnexpectedNumberOfPackagesFound)
275
InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.NoPackagesMatchedSearchTerm, searchTerm));
322
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
383
string.Format(CultureInfo.CurrentCulture,
AddCommandStrings
.SelectAVersionOfPackage, firstPackage.Package.Id),
400
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);