37 references to NewCommandStrings
aspire (29)
Commands\NewCommand.cs (22)
41
Description =
NewCommandStrings
.NameArgumentDescription,
46
Description =
NewCommandStrings
.OutputArgumentDescription,
51
Description =
NewCommandStrings
.SourceArgumentDescription,
56
Description =
NewCommandStrings
.VersionArgumentDescription,
78
: base("new",
NewCommandStrings
.Description, services)
102
?
NewCommandStrings
.ChannelOptionDescriptionWithStaging
103
:
NewCommandStrings
.ChannelOptionDescription,
110
Description =
NewCommandStrings
.LanguageOptionDescription,
324
InteractionService.DisplayError(
NewCommandStrings
.NonInteractiveTemplateRequired);
358
NewCommandStrings
.ResolvingTemplateVersion,
411
errorMessage =
NewCommandStrings
.NoPackageChannelsAvailable;
426
NewCommandStrings
.NoChannelFoundMatching,
475
NewCommandStrings
.NoTemplateVersionsFoundInChannel,
498
NewCommandStrings
.NoMatchingLocalTemplatePackage,
508
InteractionService.DisplayError(
NewCommandStrings
.SourceWithCredentialsCannotBePersisted);
518
NewCommandStrings
.SourceDirectoryNotFound,
731
NewCommandStrings
.SelectATemplateVersion,
775
NewCommandStrings
.SelectATemplateVersion,
792
NewCommandStrings
.EnterTheOutputPath,
806
NewCommandStrings
.EnterTheProjectName,
810
: ValidationResult.Error(
NewCommandStrings
.InvalidProjectName),
817
NewCommandStrings
.SelectAProjectTemplate,
Resources\NewCommandStrings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::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)
99
Assert.Equal(
NewCommandStrings
.ChannelOptionDescriptionWithStaging, channelOption.Description);
1400
Assert.Contains(
NewCommandStrings
.SourceWithCredentialsCannotBePersisted, interactionService!.DisplayedErrors);
2407
e => string.Equals(e,
NewCommandStrings
.NonInteractiveTemplateRequired, StringComparison.Ordinal));
3065
NewCommandStrings
.OutputDirectoryNotEmptyInteractive,
3448
var expectedError = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputDirectoryNotEmptyNonInteractive, existingDir.FullName);
3530
var expectedError = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputPathContainsInvalidCharacters, invalidPath);
3587
var expectedMessage = string.Format(CultureInfo.CurrentCulture,
NewCommandStrings
.OutputPathContainsInvalidCharacters, invalidPath);