52 references to ConfigCommandStrings
aspire (52)
Commands\ConfigCommand.cs (44)
25
: base("config",
ConfigCommandStrings
.Description, services)
51
ConfigCommandStrings
.ExtensionActionPrompt,
67
Description =
ConfigCommandStrings
.GetCommand_KeyArgumentDescription
71
: base("get",
ConfigCommandStrings
.GetCommand_Description, configurationService, services)
89
var key = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
114
Description =
ConfigCommandStrings
.SetCommand_KeyArgumentDescription
118
Description =
ConfigCommandStrings
.SetCommand_ValueArgumentDescription
122
Description =
ConfigCommandStrings
.SetCommand_GlobalArgumentDescription
126
: base("set",
ConfigCommandStrings
.SetCommand_Description, configurationService, services)
154
var key = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
155
var value = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken);
157
ConfigCommandStrings
.SetCommand_PromptForGlobal,
159
g => g ?
ConfigCommandStrings
.SetCommand_PromptForGlobal_GlobalOption :
ConfigCommandStrings
.SetCommand_PromptForGlobal_LocalOption,
190
? string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeySetGlobally, key,
192
: string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeySetLocally, key,
216
Description =
ConfigCommandStrings
.ListCommand_AllOptionDescription
220
: base("list",
ConfigCommandStrings
.ListCommand_Description, configurationService, services)
256
InteractionService.DisplayMessage(KnownEmojis.Information,
ConfigCommandStrings
.NoConfigurationValuesFound);
261
InteractionService.DisplayMarkupLine($" [dim]{
ConfigCommandStrings
.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]");
270
var keyWidth = MaxWidth(
ConfigCommandStrings
.HeaderKey, localConfig.Keys, globalConfig.Keys);
271
var valueWidth = MaxWidth(
ConfigCommandStrings
.HeaderValue, localConfig.Values, globalConfig.Values);
275
ConfigCommandStrings
.LocalConfigurationHeader,
277
ConfigCommandStrings
.NoLocalConfigurationFound,
285
ConfigCommandStrings
.GlobalConfigurationHeader,
287
ConfigCommandStrings
.NoGlobalConfigurationFound,
306
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.AvailableFeaturesHeader}:**");
317
InteractionService.DisplayMarkupLine($" [dim]{
ConfigCommandStrings
.SetFeatureHint.EscapeMarkup()}[/]");
321
InteractionService.DisplayMarkupLine($" [dim]{
ConfigCommandStrings
.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]");
343
table.AddBoldColumn(
ConfigCommandStrings
.HeaderKey, width: keyWidth);
344
table.AddBoldColumn(
ConfigCommandStrings
.HeaderValue, width: valueWidth);
368
Description =
ConfigCommandStrings
.DeleteCommand_KeyArgumentDescription
372
Description =
ConfigCommandStrings
.DeleteCommand_GlobalArgumentDescription
376
: base("delete",
ConfigCommandStrings
.DeleteCommand_Description, configurationService, services)
397
var key = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
407
ConfigCommandStrings
.DeleteCommand_PromptForGlobal,
425
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyDeletedGlobally, key));
429
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyDeletedLocally, key));
453
: base("info",
ConfigCommandStrings
.InfoCommand_Description, configurationService, services)
460
Description =
ConfigCommandStrings
.InfoCommand_JsonOptionDescription
505
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_LocalSettingsPath}:**");
508
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_GlobalSettingsPath}:**");
511
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_AvailableFeatures}:**");
517
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_SettingsProperties}:**");
Configuration\ConfigurationService.cs (7)
255
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationArrayRequired, key));
533
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyInvalid, key), nameof(key));
542
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyInvalid, key), nameof(key));
552
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyInvalid, key), nameof(key));
573
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationArrayIndexInvalid, key), nameof(key));
590
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationArrayIndexOutOfRange, index, key, array.Count), nameof(key));
597
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationArrayRequired, key));
Resources\ConfigCommandStrings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.ConfigCommandStrings", typeof(
ConfigCommandStrings
).Assembly);