45 references to ConfigCommandStrings
aspire (45)
Commands\ConfigCommand.cs (44)
24
: base("config",
ConfigCommandStrings
.Description, services)
50
ConfigCommandStrings
.ExtensionActionPrompt,
66
Description =
ConfigCommandStrings
.GetCommand_KeyArgumentDescription
70
: base("get",
ConfigCommandStrings
.GetCommand_Description, configurationService, services)
88
var key = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
113
Description =
ConfigCommandStrings
.SetCommand_KeyArgumentDescription
117
Description =
ConfigCommandStrings
.SetCommand_ValueArgumentDescription
121
Description =
ConfigCommandStrings
.SetCommand_GlobalArgumentDescription
125
: base("set",
ConfigCommandStrings
.SetCommand_Description, configurationService, services)
153
var key = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
154
var value = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken);
156
ConfigCommandStrings
.SetCommand_PromptForGlobal,
158
g => g ?
ConfigCommandStrings
.SetCommand_PromptForGlobal_GlobalOption :
ConfigCommandStrings
.SetCommand_PromptForGlobal_LocalOption,
182
? string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeySetGlobally, key,
184
: string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeySetLocally, key,
203
Description =
ConfigCommandStrings
.ListCommand_AllOptionDescription
207
: base("list",
ConfigCommandStrings
.ListCommand_Description, configurationService, services)
243
InteractionService.DisplayMessage(KnownEmojis.Information,
ConfigCommandStrings
.NoConfigurationValuesFound);
248
InteractionService.DisplayMarkupLine($" [dim]{
ConfigCommandStrings
.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]");
257
var keyWidth = MaxWidth(
ConfigCommandStrings
.HeaderKey, localConfig.Keys, globalConfig.Keys);
258
var valueWidth = MaxWidth(
ConfigCommandStrings
.HeaderValue, localConfig.Values, globalConfig.Values);
262
ConfigCommandStrings
.LocalConfigurationHeader,
264
ConfigCommandStrings
.NoLocalConfigurationFound,
272
ConfigCommandStrings
.GlobalConfigurationHeader,
274
ConfigCommandStrings
.NoGlobalConfigurationFound,
293
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.AvailableFeaturesHeader}:**");
304
InteractionService.DisplayMarkupLine($" [dim]{
ConfigCommandStrings
.SetFeatureHint.EscapeMarkup()}[/]");
308
InteractionService.DisplayMarkupLine($" [dim]{
ConfigCommandStrings
.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]");
330
table.AddBoldColumn(
ConfigCommandStrings
.HeaderKey, width: keyWidth);
331
table.AddBoldColumn(
ConfigCommandStrings
.HeaderValue, width: valueWidth);
355
Description =
ConfigCommandStrings
.DeleteCommand_KeyArgumentDescription
359
Description =
ConfigCommandStrings
.DeleteCommand_GlobalArgumentDescription
363
: base("delete",
ConfigCommandStrings
.DeleteCommand_Description, configurationService, services)
384
var key = await InteractionService.PromptForStringAsync(
ConfigCommandStrings
.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
394
ConfigCommandStrings
.DeleteCommand_PromptForGlobal,
412
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyDeletedGlobally, key));
416
InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture,
ConfigCommandStrings
.ConfigurationKeyDeletedLocally, key));
440
: base("info",
ConfigCommandStrings
.InfoCommand_Description, configurationService, services)
447
Description =
ConfigCommandStrings
.InfoCommand_JsonOptionDescription
492
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_LocalSettingsPath}:**");
495
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_GlobalSettingsPath}:**");
498
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_AvailableFeatures}:**");
504
InteractionService.DisplayMarkdown($"**{
ConfigCommandStrings
.InfoCommand_SettingsProperties}:**");
Resources\ConfigCommandStrings.Designer.cs (1)
41
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.ConfigCommandStrings", typeof(
ConfigCommandStrings
).Assembly);