34 references to SecretCommandStrings
aspire (33)
Commands\SecretCommand.cs (3)
18Description = SecretCommandStrings.EnvironmentOptionDescription, 25result.AddError(SecretCommandStrings.InvalidEnvironmentName); 40: base("secret", SecretCommandStrings.Description, services)
Commands\SecretDeleteCommand.cs (5)
20Description = SecretCommandStrings.KeyDeleteArgumentDescription 28: base("delete", SecretCommandStrings.DeleteDescription, services) 47return CommandResult.Failure(CliExitCodes.FailedToFindProject, SecretCommandStrings.CouldNotFindAppHost); 63return CommandResult.Failure(CliExitCodes.ConfigNotFound, string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup())); 67InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretDeleteSuccess, key));
Commands\SecretGetCommand.cs (4)
20Description = SecretCommandStrings.KeyRetrieveArgumentDescription 28: base("get", SecretCommandStrings.GetDescription, services) 47return CommandResult.Failure(CliExitCodes.FailedToFindProject, SecretCommandStrings.CouldNotFindAppHost); 53return CommandResult.Failure(CliExitCodes.ConfigNotFound, string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup()));
Commands\SecretListCommand.cs (13)
22Description = SecretCommandStrings.FormatOptionDescription 27Description = SecretCommandStrings.AllEnvironmentsOptionDescription, 36: base("list", SecretCommandStrings.ListDescription, services) 57return CommandResult.Failure(CliExitCodes.InvalidCommand, SecretCommandStrings.AllEnvironmentsCannotUseEnvironment); 63return CommandResult.Failure(CliExitCodes.FailedToFindProject, SecretCommandStrings.CouldNotFindAppHost); 73return CommandResult.Failure(CliExitCodes.FailedToFindProject, SecretCommandStrings.CouldNotFindAppHost); 95InteractionService.DisplayMessage(KnownEmojis.Information, SecretCommandStrings.NoSecretsConfigured); 100table.AddBoldColumn(SecretCommandStrings.KeyColumnHeader, noWrap: true); 101table.AddBoldColumn(SecretCommandStrings.ValueColumnHeader); 150InteractionService.DisplayMessage(KnownEmojis.Information, SecretCommandStrings.NoSecretsConfigured); 155table.AddBoldColumn(SecretCommandStrings.EnvironmentColumnHeader, noWrap: true); 156table.AddBoldColumn(SecretCommandStrings.KeyColumnHeader, noWrap: true); 157table.AddBoldColumn(SecretCommandStrings.ValueColumnHeader);
Commands\SecretPathCommand.cs (2)
21: base("path", SecretCommandStrings.PathDescription, services) 37return CommandResult.Failure(CliExitCodes.FailedToFindProject, SecretCommandStrings.CouldNotFindAppHost);
Commands\SecretSetCommand.cs (5)
18Description = SecretCommandStrings.KeyArgumentDescription 23Description = SecretCommandStrings.ValueArgumentDescription 31: base("set", SecretCommandStrings.SetDescription, services) 52return CommandResult.Failure(CliExitCodes.FailedToFindProject, SecretCommandStrings.CouldNotFindAppHost); 58InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretSetSuccess, key));
Resources\SecretCommandStrings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.SecretCommandStrings", typeof(SecretCommandStrings).Assembly);
Aspire.Cli.Tests (1)
Commands\SecretCommandTests.cs (1)
304Assert.Contains(result.Errors, error => error.Message == Aspire.Cli.Resources.SecretCommandStrings.InvalidEnvironmentName);