1 write to InteractionService
aspire (1)
Commands\BaseCommand.cs (1)
73
InteractionService
= services.InteractionService;
507 references to InteractionService
aspire (507)
Commands\AddCommand.cs (13)
133
if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller,
InteractionService
, Telemetry, cancellationToken: cancellationToken))
182
var (discoveredPackages, discoveredPolyglotIds) = await
InteractionService
.ShowStatusAsync(
190
var discoveredPackages = await
InteractionService
.ShowStatusAsync(
241
InteractionService
.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PolyglotIntegrationsHidden, hiddenIntegrationCount));
352
InteractionService
.DisplayMessage(KnownEmojis.Package, Aspire.Cli.Resources.TemplatingStrings.NuGetConfigCreatedOrUpdatedConfirmationMessage);
380
InteractionService
.DisplayMessage(KnownEmojis.Information, AddCommandStrings.StoppedRunningInstance);
390
success = await
InteractionService
.ShowStatusAsync(
405
InteractionService
.DisplayLines(outputCollector.GetLines());
410
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
417
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
434
InteractionService
.DisplayLines(outputCollector.GetLines());
499
var allVersions = await
InteractionService
.ShowStatusAsync(
587
InteractionService
.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoPackagesMatchedSearchTerm, searchTerm));
Commands\AgentInitCommand.cs (22)
174
var workspaceRootPath = await
InteractionService
.PromptForFilePathAsync(
210
var applicators = await
InteractionService
.ShowStatusAsync(
228
InteractionService
.DisplayMessage(KnownEmojis.Wrench, update.Description);
232
InteractionService
.DisplayError(ex.Message);
240
var selectedLocations = await
InteractionService
.PromptForSelectionsAsync(
289
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, mcp.Description);
315
InteractionService
.DisplayError(bundleInstallFailureMessage);
319
var selectedItems = await
InteractionService
.PromptForSelectionsAsync(
414
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, AgentCommandStrings.InitCommand_InstalledPlaywrightCli);
417
InteractionService
.DisplayMessage(KnownEmojis.Warning, message!);
420
InteractionService
.DisplayError(message!);
425
InteractionService
.DisplaySubtleMessage(AgentCommandStrings.InitCommand_PlaywrightCliSkipped);
433
InteractionService
.DisplayError(ex.Message);
451
InteractionService
.DisplayError(ex.Message);
454
InteractionService
.DisplaySubtleMessage(
469
InteractionService
.DisplayMessage(KnownEmojis.Warning, AgentCommandStrings.ConfigurationCompletedWithErrors);
473
InteractionService
.DisplaySuccess(McpCommandStrings.InitCommand_ConfigurationComplete);
495
InteractionService
.DisplaySubtleMessage(ex.Message);
502
InteractionService
.DisplayMessage(
519
InteractionService
.DisplaySubtleMessage(message);
748
InteractionService
.DisplayError(
768
InteractionService
.DisplayMessage(KnownEmojis.Robot, message);
Commands\ApiGetCommand.cs (3)
53
var item = await
InteractionService
.ShowStatusAsync(
65
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
69
InteractionService
.DisplayMarkdown(item.Content);
Commands\ApiListCommand.cs (5)
55
var items = await
InteractionService
.ShowStatusAsync(
61
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.NoApiEntriesFound, scope));
68
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
72
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.FoundApiEntries, items.Count, scope));
89
InteractionService
.DisplayRenderable(table);
Commands\ApiSearchCommand.cs (5)
69
var items = await
InteractionService
.ShowStatusAsync(
75
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.NoResultsFound, query));
82
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
86
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ApiCommandStrings.FoundSearchResults, items.Count, query));
105
InteractionService
.DisplayRenderable(table);
Commands\BaseCommand.cs (9)
67
InteractionService
.DisplayCancellationMessage(CancellationMessage, consoleOverride);
83
InteractionService
.Console = ConsoleOutput.Error;
92
await FlushExtensionInteractionServiceAsync(
InteractionService
).ConfigureAwait(false);
124
InteractionService
.DisplayError(miscasedOptionError);
202
InteractionService
.DisplayError(result.ErrorMessage);
221
InteractionService
.DisplayMessage(
223
string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, MarkupHelpers.SafeFileLink(
InteractionService
, _executionContext.LogFilePath)),
231
InteractionService
.DisplayMessage(
233
string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeAppHostLogsAt, MarkupHelpers.SafeFileLink(
InteractionService
, ExecutionContext.AppHostCliLogFilePath)),
Commands\CacheCommand.cs (3)
56
InteractionService
.DisplayMessage(KnownEmojis.Information, CacheCommandStrings.CacheAlreadyEmpty);
60
InteractionService
.DisplaySuccess(CacheCommandStrings.CacheCleared);
69
InteractionService
.DisplayError(errorMessage);
Commands\CertificatesCleanCommand.cs (5)
27
InteractionService
.DisplayMessage(KnownEmojis.Information, CertificatesCommandStrings.CleanProgress);
33
InteractionService
.DisplaySuccess(CertificatesCommandStrings.CleanSuccess);
39
InteractionService
.DisplayMessage(KnownEmojis.Warning, CertificatesCommandStrings.CleanCancelled);
44
InteractionService
.DisplayError(details);
45
InteractionService
.DisplayError(CertificatesCommandStrings.CleanFailure);
Commands\CertificatesTrustCommand.cs (3)
29
InteractionService
.DisplayMessage(KnownEmojis.Information, CertificatesCommandStrings.TrustProgress);
37
InteractionService
.DisplayMessage(KnownEmojis.Warning, CertificatesCommandStrings.TrustPartialSuccess);
41
InteractionService
.DisplaySuccess(CertificatesCommandStrings.TrustSuccess);
Commands\ConfigCommand.cs (43)
49
var subcommand = await
InteractionService
.PromptForSelectionAsync(
88
var key = await
InteractionService
.PromptForStringAsync(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
98
InteractionService
.DisplayPlainText(value);
103
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
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);
155
var isGlobal = await
InteractionService
.PromptForSelectionAsync(
168
InteractionService
.DisplayError(ErrorStrings.LegacyAppHostPathCannotBeSetWithConfigCommand);
174
InteractionService
.DisplayError(ErrorStrings.GlobalAppHostPathCannotBeSetWithConfigCommand);
181
InteractionService
.DisplaySuccess(isGlobal
193
InteractionService
.DisplayError(errorMessage);
225
if (
InteractionService
is ExtensionInteractionService extensionInteractionService)
243
InteractionService
.DisplayMessage(KnownEmojis.Information, ConfigCommandStrings.NoConfigurationValuesFound);
248
InteractionService
.DisplayMarkupLine($" [dim]{ConfigCommandStrings.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]");
268
InteractionService
.DisplayEmptyLine();
292
InteractionService
.DisplayEmptyLine();
293
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.AvailableFeaturesHeader}:**");
300
InteractionService
.DisplayMarkupLine($" [cyan]{feature.Name.EscapeMarkup()}[/] [dim](default: {defaultText})[/]");
301
InteractionService
.DisplayMarkupLine($" [dim]{feature.Description.EscapeMarkup()}[/]");
303
InteractionService
.DisplayEmptyLine();
304
InteractionService
.DisplayMarkupLine($" [dim]{ConfigCommandStrings.SetFeatureHint.EscapeMarkup()}[/]");
308
InteractionService
.DisplayMarkupLine($" [dim]{ConfigCommandStrings.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]");
347
InteractionService
.DisplayRenderable(table);
384
var key = await
InteractionService
.PromptForStringAsync(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
389
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
393
var isGlobal = await
InteractionService
.PromptForSelectionAsync(
412
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedGlobally, key));
416
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedLocally, key));
423
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
431
InteractionService
.DisplayError(errorMessage);
480
if (
InteractionService
is ConsoleInteractionService consoleService)
487
InteractionService
.DisplayPlainText(json);
492
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_LocalSettingsPath}:**");
493
InteractionService
.DisplayPlainText($" {localPath}");
494
InteractionService
.DisplayEmptyLine();
495
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_GlobalSettingsPath}:**");
496
InteractionService
.DisplayPlainText($" {globalPath}");
497
InteractionService
.DisplayEmptyLine();
498
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_AvailableFeatures}:**");
501
InteractionService
.DisplayMarkupLine($" [cyan]{feature.Name.EscapeMarkup()}[/] - {feature.Description.EscapeMarkup()} [dim](default: {feature.DefaultValue})[/]");
503
InteractionService
.DisplayEmptyLine();
504
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_SettingsProperties}:**");
508
InteractionService
.DisplayMarkupLine($" {requiredText}[cyan]{property.Name.EscapeMarkup()}[/] ([yellow]{property.Type.EscapeMarkup()}[/]) - {property.Description.EscapeMarkup()}");
Commands\DashboardRunCommand.cs (7)
176
return await
InteractionService
.ShowStatusAsync(
427
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, DashboardCommandStrings.DashboardFailedToStart, ex.Message));
437
var completedTask = await
InteractionService
.ShowStatusAsync(
487
InteractionService
.DisplayError(exitMessage);
498
RenderDashboardSummary(
InteractionService
, dashboardInfo, ExecutionContext.LogFilePath);
499
InteractionService
.DisplayEmptyLine();
517
InteractionService
.DisplayError(GetExitCodeMessage(process.ExitCode));
Commands\DescribeCommand.cs (10)
140
return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsInformation(result,
InteractionService
));
181
AppHostFollowDisconnectHelpers.WriteStatusMessage(
InteractionService
, connection);
203
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, DescribeCommandStrings.ResourceNotFound, resourceName));
214
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
266
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
289
InteractionService
.DisplayMessage(KnownEmojis.Information, "No resources found.");
320
nameMarkup = MarkupHelpers.SafeLink(
InteractionService
, resourceUrl, displayName);
330
InteractionService
.DisplayRenderable(table);
352
InteractionService
.DisplayMarkupLine($"{ColorResourceName(state.DisplayName, $"[[{state.DisplayName.EscapeMarkup()}]]")} {stateText}{healthText}{endpointsStr}");
385
? MarkupHelpers.SafeLink(
InteractionService
, url, text)
Commands\DoCommand.cs (3)
49
if (!ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _))
73
&& ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _))
75
targetStep = await
InteractionService
.PromptForStringAsync(
Commands\DocsGetCommand.cs (3)
62
var doc = await
InteractionService
.ShowStatusAsync(
75
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
79
InteractionService
.DisplayMarkdown(doc.Content, maxWidth: 100);
Commands\DocsListCommand.cs (4)
50
var docs = await
InteractionService
.ShowStatusAsync(
63
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
67
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundDocumentationPages, docs.Count));
82
InteractionService
.DisplayRenderable(table);
Commands\DocsSearchCommand.cs (5)
64
var response = await
InteractionService
.ShowStatusAsync(
70
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.NoResultsFound, query));
78
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
82
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundSearchResults, response.Results.Count, query));
100
InteractionService
.DisplayRenderable(table);
Commands\DoctorCommand.cs (4)
81
var results = await
InteractionService
.ShowStatusAsync(
121
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
160
_ansiConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, DoctorCommandStrings.DetailedPrerequisitesLink, MarkupHelpers.SafeLink(
InteractionService
, prerequisitesUrl)));
198
detailGrid.AddRow(new Markup($"See: {MarkupHelpers.SafeLink(
InteractionService
, result.Link!)}"));
Commands\ExportCommand.cs (10)
104
_connectionResolver,
InteractionService
, _httpClientFactory, _logger, passedAppHostProjectFile, dashboardUrl, apiKey, requireDashboard: false, cancellationToken);
113
InteractionService
.DisplayMessage(KnownEmojis.Warning, ExportCommandStrings.DashboardNotAvailable);
124
TelemetryCommandHelpers.DisplayTelemetryError(
InteractionService
, errorInfo);
150
var (telemetryResources, allSnapshots) = await
InteractionService
.ShowStatusAsync(ExportCommandStrings.GatheringResources, async () =>
169
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ResourceNotFound, resourceName));
175
InteractionService
.DisplayMessage(KnownEmojis.Information, ExportCommandStrings.NoResourcesFound);
200
await
InteractionService
.ShowStatusAsync(ExportCommandStrings.GatheringConsoleLogs, async () =>
210
await
InteractionService
.ShowStatusAsync(ExportCommandStrings.GatheringStructuredLogs, async () =>
217
await
InteractionService
.ShowStatusAsync(ExportCommandStrings.GatheringTraces, async () =>
227
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, ExportCommandStrings.ExportComplete, fullPath));
Commands\ExtensionInternalCommand.cs (1)
47
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
Commands\InitCommand.cs (26)
167
InteractionService
,
183
InteractionService
.DisplayEmptyLine();
184
InteractionService
.DisplayMessage(
189
InteractionService
.DisplayEmptyLine();
193
InteractionService
.DisplaySubtleMessage($" {command}");
212
InteractionService
.DisplayMessage(
265
InteractionService
.DisplayMessage(KnownEmojis.Package, TemplatingStrings.NuGetConfigCreatedOrUpdatedConfirmationMessage);
271
InteractionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, "apphost.cs"));
294
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, "apphost.cs"));
367
InteractionService
.DisplayMessage(KnownEmojis.Package, TemplatingStrings.NuGetConfigCreatedOrUpdatedConfirmationMessage);
372
InteractionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, $"{appHostDirName}/"));
412
InteractionService
.DisplayError(ex.Message);
417
InteractionService
.DisplayError(ex.Message);
426
InteractionService
.DisplayError(ex.Message);
443
InteractionService
.DisplayLines(installOutcome.OutputLines);
444
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, installOutcome.ExitCode));
450
var result = await
InteractionService
.ShowStatusAsync(
465
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToCreateAppHostFromTemplate, result));
469
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, $"{appHostDirName}/"));
484
InteractionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, existingAppHostFileName));
492
InteractionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, displayPath));
521
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, displayPath));
547
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToParseExistingConfig, AspireConfigFile.FileName, configPath, ex.Message));
548
InteractionService
.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FixOrRemoveConfigAndRerun, AspireConfigFile.FileName));
642
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, AspireConfigFile.FileName));
836
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, fileName));
Commands\IntegrationSearchCommand.cs (11)
85
var (discoveredPackages, discoveredPolyglotIds) = await
InteractionService
.ShowStatusAsync(
93
packagesWithChannels = (await
InteractionService
.ShowStatusAsync(
127
InteractionService
.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PolyglotIntegrationsHidden, hiddenIntegrationCount));
135
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
173
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
184
InteractionService
.DisplayError(AddCommandStrings.NoPolyglotCompatibleIntegrationsFound);
188
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoIntegrationPackagesMatchedSearchTerm, searchTerm));
192
InteractionService
.DisplayError(AddCommandStrings.NoPackagesFound);
200
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.FoundIntegrationPackagesMatchingSearchTerm, results.Length, searchTerm));
204
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.FoundIntegrationPackages, results.Length));
220
InteractionService
.DisplayRenderable(table);
Commands\LogsCommand.cs (9)
167
return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsInformation(result,
InteractionService
));
192
InteractionService
.DisplayMessage(KnownEmojis.Information, LogsCommandStrings.NoResourcesFound);
218
AppHostFollowDisconnectHelpers.WriteStatusMessage(
InteractionService
, connection);
240
var entries = await
InteractionService
.ShowStatusAsync(
273
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
279
InteractionService
.DisplayMessage(KnownEmojis.Information, LogsCommandStrings.NoLogsFound);
308
var entries = await
InteractionService
.ShowStatusAsync(
458
InteractionService
.DisplayRawText(output, ConsoleOutput.Standard);
466
InteractionService
.DisplayMarkupLine($"{dimTimestamp}[{color}][[{displayName.EscapeMarkup()}]][/] {escapedContent}");
Commands\LsCommand.cs (6)
116
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
124
InteractionService
.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.LsNoCandidateAppHostsFound);
128
InteractionService
.DisplayRenderable(BuildTable(appHostInfos,
InteractionService
.SupportsLinks));
138
InteractionService
.DisplayCancellationMessage();
195
await
InteractionService
.ShowDynamicStatusAsync(
Commands\McpCallCommand.cs (3)
68
return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsError(result,
InteractionService
, CliExitCodes.FailedToDotnetRunAppHost));
112
InteractionService
.DisplayRawText(textContent.Text);
123
InteractionService
.DisplayRawText(System.Text.Encoding.UTF8.GetString(stream.ToArray()));
Commands\McpInitCommand.cs (2)
46
InteractionService
.DisplayMarkupLine($"[yellow]⚠ {McpCommandStrings.DeprecatedCommandWarning}[/]");
47
InteractionService
.DisplayEmptyLine();
Commands\McpStartCommand.cs (1)
29
InteractionService
.DisplayMarkupLine($"[yellow]⚠ {McpCommandStrings.DeprecatedCommandWarning}[/]");
Commands\McpToolsCommand.cs (4)
54
return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsInformation(result,
InteractionService
));
63
InteractionService
.DisplayMessage(KnownEmojis.Information, "No resources with MCP tools found.");
92
InteractionService
.DisplayRawText(System.Text.Encoding.UTF8.GetString(stream.ToArray()));
113
InteractionService
.DisplayRenderable(table);
Commands\NewCommand.cs (13)
171
var selected = await
InteractionService
.PromptForSelectionAsync(
232
InteractionService
.DisplayError($"Template '{template.Name}' does not support language '{explicitLanguageId}'.");
244
InteractionService
.DisplayError($"Template '{template.Name}' does not support language '{explicitLanguageId}'.");
309
InteractionService
.DisplayError($"Template '{parseResult.CommandResult.Command.Name}' is not available. Ensure the required runtime is installed.");
316
InteractionService
.DisplayError("No templates are available for the current environment.");
322
InteractionService
.DisplayError(NewCommandStrings.NonInteractiveTemplateRequired);
324
InteractionService
.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NonInteractiveAvailableValues, templateNames));
331
InteractionService
.DisplayError("No templates are available for the current environment.");
355
return await
InteractionService
.ShowStatusAsync(
500
InteractionService
.DisplayError(NewCommandStrings.SourceWithCredentialsCannotBePersisted);
508
InteractionService
.DisplayError(string.Format(
603
var agentInitResult = await _agentInitCommand.PromptAndChainAsync(
InteractionService
, templateResult.ExitCode, workspaceRoot, agentInitBinding, skillLocationsBinding, skillsBinding, AgentInitCommand.ExcludeOneTimeSetupSkillsFromDefaults, cancellationToken);
605
if (templateResult.OutputPath is not null && ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _))
Commands\PipelineCommandBase.cs (31)
164
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _)
206
var startDebugSession = ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _) && parseResult.GetValue(RootCommand.StartDebugSessionOption);
292
InteractionService
.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost);
295
var backchannel = await
InteractionService
.ShowStatusAsync(GetProgressMessage(parseResult), (Func<Task<IAppHostCliBackchannel>>)(async () =>
314
&& ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _))
346
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
393
InteractionService
.DisplayLines(outputCollector.GetLines());
427
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
454
InteractionService
.DisplayError(errorMessage);
457
InteractionService
.DisplayLines(outputCollector.GetLines());
467
InteractionService
.DisplayError(errorMessage);
470
InteractionService
.DisplayLines(outputCollector.GetLines());
480
InteractionService
.DisplayError(errorMessage);
483
InteractionService
.DisplayLines(outputCollector.GetLines());
736
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Step {stepCounter++}: {statusText}", allowMarkup: true);
745
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Step {activity.Data.Id}: {status} - {statusText}", allowMarkup: true);
767
InteractionService
.DisplaySubtleMessage(formattedMessage, allowMarkup: true);
778
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Task {activity.Data.Id} ({stepId}): {status} - {statusText}", allowMarkup: true);
782
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] {completionMessage}", allowMarkup: true);
788
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Task {activity.Data.Id} ({stepId}): {statusText}", allowMarkup: true);
800
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] {OperationCompletedPrefix}: {status} - {statusText}", allowMarkup: true);
1136
InteractionService
.DisplayError(error);
1142
InputType.Text => await
InteractionService
.PromptForStringAsync(
1148
InputType.SecretText => await
InteractionService
.PromptForStringAsync(
1157
InputType.Boolean => (await
InteractionService
.PromptConfirmAsync(promptText, binding: PromptBinding.CreateDefault(ParseBooleanValue(input.Value)), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
1173
return await
InteractionService
.PromptForStringAsync(promptText, binding: PromptBinding.CreateDefault(input.Value), required: input.Required, cancellationToken: cancellationToken);
1187
var (value, displayText) = await
InteractionService
.PromptForSelectionAsync(
1195
return await
InteractionService
.PromptForStringAsync(promptText, binding: PromptBinding.CreateDefault(input.Value), required: input.Required, cancellationToken: cancellationToken);
1215
return await
InteractionService
.PromptForStringAsync(
1288
var value = await
InteractionService
.PromptForFilePathAsync(
1305
var singleValue = await
InteractionService
.PromptForFilePathAsync(
Commands\PsCommand.cs (7)
127
: await
InteractionService
.ShowStatusAsync(
136
InteractionService
.DisplayRawText("[]", ConsoleOutput.Standard);
140
InteractionService
.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning);
157
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
279
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
433
dashboard = MarkupHelpers.SafeLink(
InteractionService
, appHost.DashboardUrl);
455
InteractionService
.DisplayRenderable(table);
Commands\RenderCommand.cs (67)
128
InteractionService
.DisplayEmptyLine();
131
var choice = await
InteractionService
.PromptForSelectionAsync(
203
InteractionService
.DisplayError($"Unknown render scenario '{choice}'.");
204
InteractionService
.DisplayPlainText("Use 'aspire render --list-scenarios' to see supported values.");
218
InteractionService
.DisplayPlainText($"{choice.Key}: {choice.Value}");
221
InteractionService
.DisplayEmptyLine();
225
InteractionService
.DisplayPlainText($"{scenario.Key}: {scenario.Value}");
233
InteractionService
.DisplayMessage(emoji, $"DisplayMessage with {emoji.Name}");
236
InteractionService
.DisplayEmptyLine();
237
InteractionService
.DisplayMessage(KnownEmojis.Rocket, "This is a much longer message that is designed to test how text wraps when the terminal window is narrow. It should wrap cleanly beneath the text column without pushing content under the emoji icon on the left side of the display.");
238
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, "Successfully deployed the application to the remote environment. The deployment included 14 services, 3 databases, and 2 message brokers. All health checks passed and the application is now accepting traffic on the configured endpoints.");
239
InteractionService
.DisplayError("Something went terribly wrong while attempting to connect to the remote application host. The connection timed out after 30 seconds. Please verify that the host is running and that the network configuration allows traffic on the specified port.");
246
InteractionService
.DisplayError("This is an error message.");
247
InteractionService
.DisplaySuccess("Operation completed successfully.");
248
InteractionService
.DisplaySubtleMessage("This is a subtle hint.");
249
InteractionService
.DisplayCancellationMessage();
251
InteractionService
.DisplayEmptyLine();
252
InteractionService
.DisplayError("Failed to resolve package 'Aspire.Hosting.Azure.CosmosDB' version 9.2.0. The package source 'https://api.nuget.org/v3/index.json' returned a 503 Service Unavailable response. Please check your network connection and try again, or configure an alternative package source in your NuGet.config file.");
253
InteractionService
.DisplaySuccess("All 47 integration tests passed successfully across 3 target frameworks (net8.0, net9.0, net10.0). Total execution time: 2 minutes and 14 seconds. Code coverage increased from 78.3% to 82.1%.");
261
await
InteractionService
.ShowStatusAsync(
276
await
InteractionService
.ShowStatusAsync(
291
await
InteractionService
.ShowStatusAsync(
315
var selected = await
InteractionService
.PromptForSelectionAsync(
328
var selected = await
InteractionService
.PromptForSelectionAsync(
334
InteractionService
.DisplayMessage(KnownEmojis.Rocket, $"Deploying to {selected}...");
340
InteractionService
.DisplayMessage(KnownEmojis.Rocket, "Starting mixed methods test...");
341
InteractionService
.DisplayEmptyLine();
343
InteractionService
.DisplaySuccess("Step 1 complete!");
344
InteractionService
.DisplaySubtleMessage("This is a subtle hint.");
345
InteractionService
.DisplayMessage(KnownEmojis.MagnifyingGlassTiltedLeft, "Searching for [packages]...");
346
InteractionService
.DisplayEmptyLine();
348
InteractionService
.DisplayMarkupLine("[bold green]Bold green markup[/] and [dim]dim text[/]");
349
InteractionService
.DisplayPlainText("Plain text with [brackets] that should appear literally.");
350
InteractionService
.DisplayEmptyLine();
352
await
InteractionService
.ShowStatusAsync(
361
InteractionService
.ShowStatus(
366
InteractionService
.DisplayEmptyLine();
368
var name = await
InteractionService
.PromptForStringAsync(
373
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, $"You entered: {name}");
375
var confirmed = await
InteractionService
.PromptConfirmAsync(
382
InteractionService
.DisplaySuccess("Confirmed!");
386
InteractionService
.DisplayError("Cancelled.");
389
InteractionService
.DisplayEmptyLine();
390
InteractionService
.DisplayMessage(KnownEmojis.StopSign, "Mixed methods test complete.");
406
InteractionService
.DisplayMessage(KnownEmojis.Information, "This demo fires background log messages while a prompt is active.");
407
InteractionService
.DisplayMessage(KnownEmojis.Information, "Logs are buffered and flushed after the prompt completes.");
408
InteractionService
.DisplayEmptyLine();
426
var answer = await
InteractionService
.PromptForStringAsync(
435
InteractionService
.DisplayEmptyLine();
436
InteractionService
.DisplaySuccess($"You entered: {answer}");
437
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, "Buffered log lines should appear above this message.");
447
InteractionService
.DisplaySubtleMessage($"Temporary file created at {filePath}", allowMarkup: false);
449
InteractionService
.DisplayPlainText($"Supports links: {
InteractionService
.SupportsLinks}");
450
InteractionService
.DisplayMarkupLine($"SafeLink: {MarkupHelpers.SafeLink(
InteractionService
, "https://www.aspire.dev/", "Aspire documentation")}");
451
InteractionService
.DisplayMarkupLine($"SafeFileLink: {MarkupHelpers.SafeFileLink(
InteractionService
, filePath)}");
462
return
InteractionService
.DisplayIncompatibleVersionError(ex, ex.AspireHostingVersion ?? ex.RequiredCapability);
470
InteractionService
.DisplayPlainText($"=== {scenario.Title} ===");
576
InteractionService
.DisplayEmptyLine();
577
InteractionService
.DisplaySubtleMessage($"ProcessPublishingActivitiesDebugAsync returned succeeded={succeeded}", allowMarkup: false);
586
InteractionService
.DisplayEmptyLine();
587
InteractionService
.DisplaySubtleMessage($"ProcessAndDisplayPublishingActivitiesAsync returned succeeded={succeeded}", allowMarkup: false);
841
InteractionService
.DisplayMarkdown(MarkdownShowcase);
848
InteractionService
.DisplayRawText(plainText);
865
InteractionService
.DisplayRawText(writer.ToString());
Commands\ResourceCommand.cs (6)
121
InteractionService
.Console = ConsoleOutput.Error;
139
return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsError(result,
InteractionService
, CliExitCodes.FailedToFindProject));
162
InteractionService
,
175
InteractionService
,
671
var inScopeConnections = await command.
InteractionService
.ShowStatusAsync(
707
var matchingConnections = await command.
InteractionService
.ShowStatusAsync(
Commands\RestoreCommand.cs (2)
127
if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller,
InteractionService
, Telemetry, cancellationToken: cancellationToken))
178
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
Commands\RunCommand.cs (24)
169
var isExtensionHost = ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _);
198
if (!AppHostStartupTimeout.TryGetTimeoutSeconds(_configuration,
InteractionService
, out var timeoutSeconds))
215
&& ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _)
312
InteractionService
.DisplayMessage(KnownEmojis.Warning, RunCommandStrings.IsolatedModeRunningInstanceWarning);
394
InteractionService
.DisplayLines(outputCollector.GetLines());
403
InteractionService
.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost);
438
InteractionService
.DisplayMessage(KnownEmojis.Warning, RunCommandStrings.DashboardFailedToStart);
444
InteractionService
,
451
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out var extInteractionService, out _))
484
var showCtrlC = !ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _);
505
new Markup($"[bold]{resource.EscapeMarkup()}[/] [grey]has endpoint[/] {MarkupHelpers.SafeLink(
InteractionService
, endpoint)}")
522
await
InteractionService
.DisplayLiveAsync(BuildLiveRenderable(), async updateTarget =>
552
InteractionService
.DisplayMessage(KnownEmojis.Warning, "No longer receiving logs from AppHost.");
621
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
627
return CommandResult.FromExitCode(
InteractionService
.DisplayIncompatibleVersionError(ex, ex.AspireHostingVersion ?? ex.RequiredCapability));
804
DisplayRecentAppHostStartupOutput(
InteractionService
, outputCollector, appHostStartupOutputStartIndex);
832
DisplayRecentAppHostStartupOutput(
InteractionService
, outputCollector, appHostStartupOutputStartIndex);
845
DisplayRecentAppHostStartupOutput(
InteractionService
, outputCollector, appHostStartupOutputStartIndex);
854
var resolution = await
InteractionService
.ShowStatusAsync(
880
backchannel = await
InteractionService
.ShowStatusAsync(
894
var pendingLogCapture = CaptureAppHostLogsAsync(_fileLoggerProvider, backchannel,
InteractionService
, logCaptureCancellationSource.Token);
906
dashboardUrls = await
InteractionService
.ShowStatusAsync(
958
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _))
963
InteractionService
.DisplayRenderable(BuildCtrlCRenderable(longestLocalizedLengthWithColon));
Commands\Sdk\SdkDumpCommand.cs (10)
157
return CommandResult.FromExitCode(await
InteractionService
.ShowStatusAsync(
185
InteractionService
.DisplayError("Failed to build capability scanner.");
190
InteractionService
.DisplayMessage(KnownEmojis.Wrench, line);
233
InteractionService
.DisplaySuccess($"Capabilities written to {outputFile.FullName}");
238
InteractionService
.DisplayRawText(output, consoleOverride: ConsoleOutput.Standard);
284
InteractionService
.DisplayError("Failed to build capability scanner.");
289
InteractionService
.DisplayMessage(KnownEmojis.Wrench, line);
312
InteractionService
.DisplayError("Failed to dump capabilities for one or more integrations.");
315
InteractionService
.DisplayMessage(KnownEmojis.CrossMark, $"{failure.IntegrationName}: {failure.ErrorMessage}");
362
InteractionService
.DisplaySuccess($"Capabilities written to {outputPath}");
Commands\Sdk\SdkExportCommand.cs (7)
65
InteractionService
.Console = ConsoleOutput.Error;
198
InteractionService
.DisplayError("Failed to build the API export scanner.");
203
InteractionService
.DisplayMessage(KnownEmojis.Wrench, line);
233
InteractionService
.DisplayError(ex.Message);
238
InteractionService
.DisplayError(ex.Message);
243
InteractionService
.DisplayError(ex.Message);
251
InteractionService
.DisplayRawText(json, consoleOverride: ConsoleOutput.Standard);
Commands\Sdk\SdkGenerateCommand.cs (4)
89
return CommandResult.FromExitCode(await
InteractionService
.ShowStatusAsync(
146
InteractionService
.DisplayError("Failed to build SDK generation server.");
151
InteractionService
.DisplayMessage(KnownEmojis.Wrench, line);
191
InteractionService
.DisplaySuccess($"Generated {generatedFiles.Count} files in {outputDir.FullName}");
Commands\SecretDeleteCommand.cs (1)
53
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretDeleteSuccess, key));
Commands\SecretGetCommand.cs (1)
55
InteractionService
.DisplayRawText(value, consoleOverride: ConsoleOutput.Standard);
Commands\SecretListCommand.cs (3)
62
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
68
InteractionService
.DisplayMessage(KnownEmojis.Information, SecretCommandStrings.NoSecretsConfigured);
83
InteractionService
.DisplayRenderable(table);
Commands\SecretPathCommand.cs (1)
38
InteractionService
.DisplayRawText(result.Store.FilePath, consoleOverride: ConsoleOutput.Standard);
Commands\SecretSetCommand.cs (1)
58
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretSetSuccess, key));
Commands\SetupCommand.cs (4)
68
var exitCode = await
InteractionService
.ShowStatusAsync(
79
InteractionService
.DisplayMessage(KnownEmojis.Information, "This CLI binary does not contain an embedded bundle. No extraction needed.");
83
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, "Bundle is already extracted and up to date. Use --force to re-extract.");
87
InteractionService
.DisplayMessage(KnownEmojis.CheckMarkButton, $"Bundle extracted to {installPath}");
Commands\StartCommand.cs (2)
76
&& ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _)
121
if (!AppHostStartupTimeout.TryGetTimeoutSeconds(_configuration,
InteractionService
, out var timeoutSeconds))
Commands\StopCommand.cs (24)
142
InteractionService
.DisplayError(StopCommandStrings.CouldNotDetermineAppHostPath);
174
InteractionService
.DisplayError(errorMessage);
212
InteractionService
.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning);
216
InteractionService
.DisplayError(SharedCommandStrings.AppHostNotRunning);
225
InteractionService
.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning);
245
InteractionService
.DisplayError(string.Format(CultureInfo.InvariantCulture, StopCommandStrings.MultipleAppHostsNonInteractive, s_appHostOption.Name, s_allOption.Name));
270
return new StopAppHostResult(AppHostConnectionResultHandler.DisplayFailureAsInformation(result,
InteractionService
), null);
297
InteractionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, displayPath));
318
InteractionService
.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, displayPath));
351
var cleanupResult = await
InteractionService
.ShowStatusAsync(
356
InteractionService
.DisplayPlainText("");
360
InteractionService
.DisplayError(StopCommandStrings.DcpCleanupUnavailable);
367
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.DcpCleanupFailed, appHostDisplayPath, details));
371
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.PersistentResourcesCleaned, appHostDisplayPath));
390
InteractionService
.DisplayMessage(KnownEmojis.Warning, StopCommandStrings.DcpCleanupCompatibilityCheckFailed);
396
InteractionService
.DisplayMessage(KnownEmojis.Warning, StopCommandStrings.DcpCleanupCompatibilityCheckFailed);
408
InteractionService
.DisplayMessage(KnownEmojis.Warning, string.Format(
456
InteractionService
.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning);
497
InteractionService
.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FoundRunningAppHost, appHostIdentifier));
500
InteractionService
.DisplayMessage(KnownEmojis.StopSign, string.Format(CultureInfo.CurrentCulture, StopCommandStrings.SendingStopSignal, appHostIdentifier));
502
var stopped = await
InteractionService
.ShowStatusAsync(
507
InteractionService
.DisplayPlainText("");
517
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostStoppedSuccessfully, appHostIdentifier));
522
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FailedToStopAppHost, appHostIdentifier));
Commands\TelemetrySpansCommand.cs (8)
91
_connectionResolver,
InteractionService
, _httpClientFactory, _logger, passedAppHostProjectFile, dashboardUrl, apiKey, requireDashboard: true, cancellationToken);
129
InteractionService
.DisplayError($"Resource '{resource}' not found.");
153
TelemetryCommandHelpers.DisplayTelemetryError(
InteractionService
, errorInfo);
170
InteractionService
.DisplayRawText(SharedAIHelpers.SerializeSpansToJson(resourceSpans, getResourceName, dashboardUrl), ConsoleOutput.Standard);
195
InteractionService
.DisplayRawText(SharedAIHelpers.SerializeSpansToJson(resourceSpans, getResourceName, dashboardUrl), ConsoleOutput.Standard);
213
TelemetryCommandHelpers.DisplayNoData(
InteractionService
, "spans");
266
var spanIdLink = TelemetryCommandHelpers.FormatTraceLink(
InteractionService
, dashboardUrl, traceId, shortSpanId, spanId: spanId);
271
InteractionService
.DisplayMarkupLine($"[grey]{timestamp}[/] [{statusColor}]{statusText}[/] [white]{durationStr,8}[/] [{resourceColor}]{resourceName.EscapeMarkup()}[/]: {escapedName} [grey]{spanIdLink}[/]");
Commands\TelemetryTracesCommand.cs (21)
89
_connectionResolver,
InteractionService
, _httpClientFactory, _logger, passedAppHostProjectFile, dashboardUrl, apiKey, requireDashboard: true, cancellationToken);
111
TelemetryCommandHelpers.DisplayTelemetryError(
InteractionService
, errorInfo);
141
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, TelemetryCommandStrings.TraceNotFound, traceId));
158
InteractionService
.DisplayRawText("[]", ConsoleOutput.Standard);
163
InteractionService
.DisplayRawText(SharedAIHelpers.SerializeTraceToJson(trace, getResourceName, dashboardUrl), ConsoleOutput.Standard);
193
InteractionService
.DisplayError($"Resource '{resource}' not found.");
216
InteractionService
.DisplayRawText(SharedAIHelpers.SerializeTracesToJson(resourceSpans, getResourceName, dashboardUrl), ConsoleOutput.Standard);
233
TelemetryCommandHelpers.DisplayNoData(
InteractionService
, "traces");
291
var traceLink = TelemetryCommandHelpers.FormatTraceLink(
InteractionService
, dashboardUrl, info.TraceId, shortTraceId);
296
InteractionService
.DisplayRenderable(table);
297
InteractionService
.DisplayMarkupLine($"[grey]Showing {traceInfos.Count} of {response?.TotalCount ?? traceInfos.Count} traces[/]");
329
var traceLink = TelemetryCommandHelpers.FormatTraceLink(
InteractionService
, dashboardUrl, traceId, shortTraceId);
333
InteractionService
.DisplayMarkupLine($"[bold]Trace:[/] {traceLink}");
334
InteractionService
.DisplayMarkupLine("[dim]No spans found[/]");
343
InteractionService
.DisplayMarkupLine($"[bold]Trace:[/] {traceLink}");
344
InteractionService
.DisplayMarkupLine($"[bold]Duration:[/] {TelemetryCommandHelpers.FormatDuration(totalDuration)} [bold]Spans:[/] {spans.Count}");
345
InteractionService
.DisplayEmptyLine();
389
InteractionService
.DisplayEmptyLine(); // Blank line between resources
392
InteractionService
.DisplayMarkupLine($"{indent}[bold {resourceColor}]{span.ResourceName.EscapeMarkup()}[/]");
405
var spanIdLink = TelemetryCommandHelpers.FormatTraceLink(
InteractionService
, dashboardUrl, traceId, shortenedSpanId, spanId: span.SpanId);
414
InteractionService
.DisplayMarkupLine($"{indent}{connector} [dim]{spanIdLink}[/] {displayName} [{statusColor}]{statusText}[/] [dim]{durationStr}[/]");
Commands\UpdateCommand.cs (43)
163
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage);
164
InteractionService
.DisplayPlainText($" {dotNetToolUpdateCommand}");
174
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage);
175
InteractionService
.DisplayPlainText($" {npmUpdateCommand}");
248
var allChannels = await
InteractionService
.ShowStatusAsync(
330
channel = await
InteractionService
.PromptForSelectionAsync(
382
var shouldUpdateCli = await
InteractionService
.PromptConfirmAsync(
392
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage);
393
InteractionService
.DisplayPlainText($" {dotNetToolUpdateCommand}");
400
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage);
401
InteractionService
.DisplayPlainText($" {npmUpdateCommand}");
434
var shouldUpdateCli = await
InteractionService
.PromptConfirmAsync(
446
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
501
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.PendingMigrationsHeader);
504
InteractionService
.DisplaySubtleMessage($" - {descriptor.Title}");
507
InteractionService
.DisplaySubtleMessage(UpdateCommandStrings.PendingMigrationsHint);
513
InteractionService
.DisplaySubtleMessage(MigrationStrings.NothingToMigrate);
517
InteractionService
.DisplayMessage(KnownEmojis.Gear, MigrationStrings.AvailableMigrationsHeader);
520
InteractionService
.DisplaySubtleMessage($" - {descriptor.Title}");
526
var confirmed = await
InteractionService
.PromptConfirmAsync(
532
InteractionService
.DisplaySubtleMessage(MigrationStrings.MigrationCancelled);
551
InteractionService
.DisplayMessage(KnownEmojis.Warning, UpdateCommandStrings.MigrationApplyFailedWarning);
580
var shouldUpdateCli = await
InteractionService
.PromptConfirmAsync(
593
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage);
594
InteractionService
.DisplayPlainText($" {dotNetToolUpdateCommand}");
595
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage);
602
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage);
603
InteractionService
.DisplayPlainText($" {npmUpdateCommand}");
604
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage);
611
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage);
655
InteractionService
.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NixSelfUpdateMessage);
656
InteractionService
.DisplayPlainText(" nix profile upgrade aspire-cli");
657
InteractionService
.DisplayPlainText(" nix flake update <input-name>");
697
InteractionService
.DisplayError(
705
channel = await
InteractionService
.PromptForSelectionAsync(
723
InteractionService
.DisplayMessage(KnownEmojis.Package, $"Current CLI location: {currentExePath}");
724
InteractionService
.DisplayMessage(KnownEmojis.UpButton, $"Updating to channel: {channel}");
771
await
InteractionService
.ShowStatusAsync(
780
InteractionService
.DisplayMessage(KnownEmojis.Package, UpdateCommandStrings.ExtractedNewCli);
802
InteractionService
.DisplayMessage(KnownEmojis.FloppyDisk, "Backing up current CLI...");
814
InteractionService
.DisplayMessage(KnownEmojis.Wrench, $"Installing new CLI to {installDir}...");
838
InteractionService
.DisplayMessage(KnownEmojis.Information, $"Note: {installDir} is not in your PATH. Add it to use the updated CLI globally.");
940
InteractionService
.DisplaySuccess($"Updated to version: {version}");
Commands\WaitCommand.cs (7)
89
return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsError(result,
InteractionService
, CliExitCodes.FailedToFindProject));
110
var exitCode = await
InteractionService
.ShowStatusAsync(
123
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceNotFound, resourceName));
129
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.WaitTimedOut, resourceName, statusLabel, timeoutSeconds));
134
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceEnteredFailedState, resourceName, response.State ?? response.ErrorMessage));
139
InteractionService
.DisplayPlainText("");
144
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceReachedTargetStatus, resourceName, statusLabel, elapsed.TotalSeconds));