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