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