37 references to NewCommandStrings
aspire (29)
Commands\NewCommand.cs (22)
41Description = NewCommandStrings.NameArgumentDescription, 46Description = NewCommandStrings.OutputArgumentDescription, 51Description = NewCommandStrings.SourceArgumentDescription, 56Description = NewCommandStrings.VersionArgumentDescription, 78: base("new", NewCommandStrings.Description, services) 102? NewCommandStrings.ChannelOptionDescriptionWithStaging 103: NewCommandStrings.ChannelOptionDescription, 110Description = NewCommandStrings.LanguageOptionDescription, 324InteractionService.DisplayError(NewCommandStrings.NonInteractiveTemplateRequired); 358NewCommandStrings.ResolvingTemplateVersion, 411errorMessage = NewCommandStrings.NoPackageChannelsAvailable; 426NewCommandStrings.NoChannelFoundMatching, 475NewCommandStrings.NoTemplateVersionsFoundInChannel, 498NewCommandStrings.NoMatchingLocalTemplatePackage, 508InteractionService.DisplayError(NewCommandStrings.SourceWithCredentialsCannotBePersisted); 518NewCommandStrings.SourceDirectoryNotFound, 731NewCommandStrings.SelectATemplateVersion, 775NewCommandStrings.SelectATemplateVersion, 792NewCommandStrings.EnterTheOutputPath, 806NewCommandStrings.EnterTheProjectName, 810: ValidationResult.Error(NewCommandStrings.InvalidProjectName), 817NewCommandStrings.SelectAProjectTemplate,
Resources\NewCommandStrings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.NewCommandStrings", typeof(NewCommandStrings).Assembly);
Templating\OutputPathHelper.cs (6)
102var subdirectoryChoice = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.CreateProjectNameSubdirectoryChoice, projectName); 104NewCommandStrings.SelectProjectCreationLocation, 105[subdirectoryChoice, NewCommandStrings.CreateProjectDirectlyInSelectedFolderChoice], 131return string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, path); 137var format = isExplicitOutput ? NewCommandStrings.OutputDirectoryNotEmptyNonInteractive : NewCommandStrings.OutputDirectoryNotEmptyInteractive;
Aspire.Cli.Tests (8)
Commands\NewCommandChannelResolutionTests.cs (1)
222NewCommandStrings.NoMatchingLocalTemplatePackage,
Commands\NewCommandTests.cs (7)
99Assert.Equal(NewCommandStrings.ChannelOptionDescriptionWithStaging, channelOption.Description); 1400Assert.Contains(NewCommandStrings.SourceWithCredentialsCannotBePersisted, interactionService!.DisplayedErrors); 2407e => string.Equals(e, NewCommandStrings.NonInteractiveTemplateRequired, StringComparison.Ordinal)); 3065NewCommandStrings.OutputDirectoryNotEmptyInteractive, 3448var expectedError = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputDirectoryNotEmptyNonInteractive, existingDir.FullName); 3530var expectedError = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, invalidPath); 3587var expectedMessage = string.Format(CultureInfo.CurrentCulture, NewCommandStrings.OutputPathContainsInvalidCharacters, invalidPath);