37 references to NewCommandStrings
aspire (29)
Commands\NewCommand.cs (22)
40
Description =
NewCommandStrings
.NameArgumentDescription,
45
Description =
NewCommandStrings
.OutputArgumentDescription,
50
Description =
NewCommandStrings
.SourceArgumentDescription,
55
Description =
NewCommandStrings
.VersionArgumentDescription,
77
: base("new",
NewCommandStrings
.Description, services)
100
?
NewCommandStrings
.ChannelOptionDescriptionWithStaging
101
:
NewCommandStrings
.ChannelOptionDescription,
108
Description =
NewCommandStrings
.LanguageOptionDescription,
322
InteractionService.DisplayError(
NewCommandStrings
.NonInteractiveTemplateRequired);
356
NewCommandStrings
.ResolvingTemplateVersion,
409
errorMessage =
NewCommandStrings
.NoPackageChannelsAvailable;
424
NewCommandStrings
.NoChannelFoundMatching,
467
NewCommandStrings
.NoTemplateVersionsFoundInChannel,
490
NewCommandStrings
.NoMatchingLocalTemplatePackage,
500
InteractionService.DisplayError(
NewCommandStrings
.SourceWithCredentialsCannotBePersisted);
510
NewCommandStrings
.SourceDirectoryNotFound,
716
NewCommandStrings
.SelectATemplateVersion,
760
NewCommandStrings
.SelectATemplateVersion,
777
NewCommandStrings
.EnterTheOutputPath,
791
NewCommandStrings
.EnterTheProjectName,
795
: ValidationResult.Error(
NewCommandStrings
.InvalidProjectName),
802
NewCommandStrings
.SelectAProjectTemplate,
Resources\NewCommandStrings.Designer.cs (1)
31
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Aspire.Cli.Resources.NewCommandStrings", typeof(
NewCommandStrings
).Assembly);
Templating\OutputPathHelper.cs (6)
102
var subdirectoryChoice = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.CreateProjectNameSubdirectoryChoice, projectName);
104
NewCommandStrings
.SelectProjectCreationLocation,
105
[subdirectoryChoice,
NewCommandStrings
.CreateProjectDirectlyInSelectedFolderChoice],
131
return string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputPathContainsInvalidCharacters, path);
137
var format = isExplicitOutput ?
NewCommandStrings
.OutputDirectoryNotEmptyNonInteractive :
NewCommandStrings
.OutputDirectoryNotEmptyInteractive;
Aspire.Cli.Tests (8)
Commands\NewCommandChannelResolutionTests.cs (1)
222
NewCommandStrings
.NoMatchingLocalTemplatePackage,
Commands\NewCommandTests.cs (7)
98
Assert.Equal(
NewCommandStrings
.ChannelOptionDescriptionWithStaging, channelOption.Description);
1403
Assert.Contains(
NewCommandStrings
.SourceWithCredentialsCannotBePersisted, interactionService!.DisplayedErrors);
2366
e => string.Equals(e,
NewCommandStrings
.NonInteractiveTemplateRequired, StringComparison.Ordinal));
3023
NewCommandStrings
.OutputDirectoryNotEmptyInteractive,
3330
var expectedError = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputDirectoryNotEmptyNonInteractive, existingDir.FullName);
3412
var expectedError = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputPathContainsInvalidCharacters, invalidPath);
3469
var expectedMessage = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputPathContainsInvalidCharacters, invalidPath);