1 write to InteractionService
aspire (1)
Commands\BaseCommand.cs (1)
77InteractionService = services.InteractionService;
515 references to InteractionService
aspire (515)
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 (23)
159var workspaceRootPath = await InteractionService.PromptForFilePathAsync( 195var applicators = await InteractionService.ShowStatusAsync( 213InteractionService.DisplayMessage(KnownEmojis.Wrench, update.Description); 217InteractionService.DisplayError(ex.Message); 225var selectedLocations = await InteractionService.PromptForSelectionsAsync( 274InteractionService.DisplayError(bundleInstallFailureMessage); 278selectedSkills = await InteractionService.PromptForSelectionsAsync( 303configureMcp = await InteractionService.PromptConfirmAsync( 376InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, AgentCommandStrings.InitCommand_InstalledPlaywrightCli); 379InteractionService.DisplayMessage(KnownEmojis.Warning, message!); 382InteractionService.DisplayError(message!); 387InteractionService.DisplaySubtleMessage(AgentCommandStrings.InitCommand_PlaywrightCliSkipped); 395InteractionService.DisplayError(ex.Message); 409InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, target.Description); 417InteractionService.DisplayError(ex.Message); 420InteractionService.DisplaySubtleMessage( 436InteractionService.DisplayMessage(KnownEmojis.Warning, AgentCommandStrings.ConfigurationCompletedWithErrors); 440InteractionService.DisplaySuccess(McpCommandStrings.InitCommand_ConfigurationComplete); 462InteractionService.DisplaySubtleMessage(ex.Message); 469InteractionService.DisplayMessage( 486InteractionService.DisplaySubtleMessage(message); 706InteractionService.DisplayError( 726InteractionService.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 (10)
71InteractionService.DisplayCancellationMessage(CancellationMessage, consoleOverride); 87InteractionService.Console = ConsoleOutput.Error; 96await FlushExtensionInteractionServiceAsync(InteractionService).ConfigureAwait(false); 128InteractionService.DisplayError(miscasedOptionError); 207&& ExtensionHelper.IsExtensionHost(InteractionService, out var extensionInteractionService, out _) 216InteractionService.DisplayError(result.ErrorMessage); 235InteractionService.DisplayMessage( 237string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, MarkupHelpers.SafeFileLink(InteractionService, _executionContext.LogFilePath)), 245InteractionService.DisplayMessage( 247string.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)
144return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsInformation(result, InteractionService)); 189AppHostFollowDisconnectHelpers.WriteStatusMessage(InteractionService, connection); 211InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DescribeCommandStrings.ResourceNotFound, resourceName)); 222InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 274InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 336InteractionService.DisplayMessage(KnownEmojis.Information, "No resources found."); 367nameMarkup = MarkupHelpers.SafeLink(InteractionService, resourceUrl, displayName); 377InteractionService.DisplayRenderable(table); 399InteractionService.DisplayMarkupLine($"{ColorResourceName(state.DisplayName, $"[[{state.DisplayName.EscapeMarkup()}]]")} {stateText}{healthText}{endpointsStr}"); 432? 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)
182InteractionService, 197InteractionService.DisplayEmptyLine(); 198InteractionService.DisplayMessage( 203InteractionService.DisplayEmptyLine(); 207InteractionService.DisplaySubtleMessage($" {command}"); 226InteractionService.DisplayMessage( 279InteractionService.DisplayMessage(KnownEmojis.Package, TemplatingStrings.NuGetConfigCreatedOrUpdatedConfirmationMessage); 285InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, "apphost.cs")); 308InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, "apphost.cs")); 381InteractionService.DisplayMessage(KnownEmojis.Package, TemplatingStrings.NuGetConfigCreatedOrUpdatedConfirmationMessage); 386InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, $"{appHostDirName}/")); 426InteractionService.DisplayError(ex.Message); 431InteractionService.DisplayError(ex.Message); 440InteractionService.DisplayError(ex.Message); 457InteractionService.DisplayLines(installOutcome.OutputLines); 458InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, installOutcome.ExitCode)); 464var result = await InteractionService.ShowStatusAsync( 479InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToCreateAppHostFromTemplate, result)); 483InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, $"{appHostDirName}/")); 498InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, existingAppHostFileName)); 506InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FileAlreadyExistsSkipping, displayPath)); 535InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, displayPath)); 561InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FailedToParseExistingConfig, AspireConfigFile.FileName, configPath, ex.Message)); 562InteractionService.DisplayMessage(KnownEmojis.Warning, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.FixOrRemoveConfigAndRerun, AspireConfigFile.FileName)); 656InteractionService.DisplayMessage(KnownEmojis.CheckMarkButton, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.CreatedFile, AspireConfigFile.FileName)); 850InteractionService.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)
170return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsInformation(result, InteractionService)); 195InteractionService.DisplayMessage(KnownEmojis.Information, LogsCommandStrings.NoResourcesFound); 221AppHostFollowDisconnectHelpers.WriteStatusMessage(InteractionService, connection); 243var entries = await InteractionService.ShowStatusAsync( 276InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 282InteractionService.DisplayMessage(KnownEmojis.Information, LogsCommandStrings.NoLogsFound); 311var entries = await InteractionService.ShowStatusAsync( 461InteractionService.DisplayRawText(output, ConsoleOutput.Standard); 469InteractionService.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( 605InteractionService, 613if (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)
122InteractionService.Console = ConsoleOutput.Error; 140return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsError(result, InteractionService, CliExitCodes.FailedToFindProject)); 163InteractionService, 176InteractionService, 672var inScopeConnections = await command.InteractionService.ShowStatusAsync( 708var 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 (25)
176var isExtensionHost = ExtensionHelper.IsExtensionHost(InteractionService, out _, out _); 205if (!AppHostStartupTimeout.TryGetTimeoutSeconds(_configuration, InteractionService, out var timeoutSeconds)) 222&& ExtensionHelper.IsExtensionHost(InteractionService, out var extensionInteractionService, out _) 345InteractionService.DisplayMessage(KnownEmojis.Warning, RunCommandStrings.IsolatedModeRunningInstanceWarning); 434InteractionService.DisplayLines(outputCollector.GetLines()); 446InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 481InteractionService.DisplayMessage(KnownEmojis.Warning, RunCommandStrings.DashboardFailedToStart); 487InteractionService, 494if (ExtensionHelper.IsExtensionHost(InteractionService, out var extInteractionService, out _)) 527var showCtrlC = !ExtensionHelper.IsExtensionHost(InteractionService, out _, out _); 531return new Markup($"[bold]{resource.EscapeMarkup()}[/] [grey]has endpoint[/] {MarkupHelpers.SafeLink(InteractionService, endpoint)}"); 603await InteractionService.DisplayLiveAsync( 618InteractionService.DisplayRenderable(BuildStaticEndpointRenderable(resource, endpoint, isFirstEndpoint)); 640InteractionService.DisplayMessage(KnownEmojis.Warning, "No longer receiving logs from AppHost."); 703return HandleProjectLocatorException(ex, InteractionService, Telemetry); 709return CommandResult.FromExitCode(InteractionService.DisplayIncompatibleVersionError(ex, ex.AspireHostingVersion ?? ex.RequiredCapability)); 913DisplayRecentAppHostStartupOutput(InteractionService, outputCollector, appHostStartupOutputStartIndex); 941DisplayRecentAppHostStartupOutput(InteractionService, outputCollector, appHostStartupOutputStartIndex); 954DisplayRecentAppHostStartupOutput(InteractionService, outputCollector, appHostStartupOutputStartIndex); 963var resolution = await InteractionService.ShowStatusAsync( 989backchannel = await InteractionService.ShowStatusAsync( 1003var pendingLogCapture = CaptureAppHostLogsAsync(_fileLoggerProvider, backchannel, InteractionService, logCaptureCancellationSource.Token); 1015dashboardUrls = await InteractionService.ShowStatusAsync( 1067if (ExtensionHelper.IsExtensionHost(InteractionService, out _, out _)) 1072InteractionService.DisplayRenderable(BuildCtrlCRenderable(longestLocalizedLengthWithColon));
Commands\Sdk\SdkDumpCommand.cs (10)
158return CommandResult.FromExitCode(await InteractionService.ShowStatusAsync( 192InteractionService.DisplayError("Failed to build capability scanner."); 197InteractionService.DisplayMessage(KnownEmojis.Wrench, line); 240InteractionService.DisplaySuccess($"Capabilities written to {outputFile.FullName}"); 245InteractionService.DisplayRawText(output, consoleOverride: ConsoleOutput.Standard); 291InteractionService.DisplayError("Failed to build capability scanner."); 296InteractionService.DisplayMessage(KnownEmojis.Wrench, line); 319InteractionService.DisplayError("Failed to dump capabilities for one or more integrations."); 322InteractionService.DisplayMessage(KnownEmojis.CrossMark, $"{failure.IntegrationName}: {failure.ErrorMessage}"); 369InteractionService.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 (23)
158InteractionService.DisplayError(StopCommandStrings.CouldNotDetermineAppHostPath); 190InteractionService.DisplayError(errorMessage); 228InteractionService.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning); 232InteractionService.DisplayError(SharedCommandStrings.AppHostNotRunning); 241InteractionService.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning); 263InteractionService.DisplayError(string.Format(CultureInfo.InvariantCulture, StopCommandStrings.MultipleAppHostsNonInteractive, s_appHostOption.Name, s_allOption.Name)); 288return new StopAppHostResult(AppHostConnectionResultHandler.DisplayFailureAsInformation(result, InteractionService), null); 326InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, SharedCommandStrings.AppHostNotRunningAtPath, displayPath)); 358var cleanupResult = await InteractionService.ShowStatusAsync( 363InteractionService.DisplayPlainText(""); 367InteractionService.DisplayError(StopCommandStrings.DcpCleanupUnavailable); 374InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.DcpCleanupFailed, appHostDisplayPath, details)); 378InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.PersistentResourcesCleaned, appHostDisplayPath)); 397InteractionService.DisplayMessage(KnownEmojis.Warning, StopCommandStrings.DcpCleanupCompatibilityCheckFailed); 403InteractionService.DisplayMessage(KnownEmojis.Warning, StopCommandStrings.DcpCleanupCompatibilityCheckFailed); 428InteractionService.DisplayMessage(KnownEmojis.Warning, string.Format( 476InteractionService.DisplayMessage(KnownEmojis.Information, SharedCommandStrings.AppHostNotRunning); 517InteractionService.DisplayMessage(KnownEmojis.Package, string.Format(CultureInfo.CurrentCulture, StopCommandStrings.FoundRunningAppHost, appHostIdentifier)); 520InteractionService.DisplayMessage(KnownEmojis.StopSign, string.Format(CultureInfo.CurrentCulture, StopCommandStrings.SendingStopSignal, appHostIdentifier)); 522var stopped = await InteractionService.ShowStatusAsync( 527InteractionService.DisplayPlainText(""); 537InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, StopCommandStrings.AppHostStoppedSuccessfully, appHostIdentifier)); 542InteractionService.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\TerminalTapePlayCommand.cs (5)
74InteractionService.Console = ConsoleOutput.Error; 115connectionResult, InteractionService, CliExitCodes.FailedToFindProject)); 192InteractionService.DisplayRawText(result.FinalSnapshot.GetScreenText(), ConsoleOutput.Standard); 202InteractionService.DisplayRawText(ex.TerminalText, ConsoleOutput.Standard); 232InteractionService.DisplayRawText(
Commands\UpdateCommand.cs (44)
166InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 167InteractionService.DisplayPlainText($" {dotNetToolUpdateCommand}"); 177InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage); 178InteractionService.DisplayPlainText($" {npmUpdateCommand}"); 270var allChannels = await InteractionService.ShowStatusAsync( 352channel = await InteractionService.PromptForSelectionAsync( 417var shouldUpdateCli = await InteractionService.PromptConfirmAsync( 427InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 428InteractionService.DisplayPlainText($" {dotNetToolUpdateCommand}"); 435InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage); 436InteractionService.DisplayPlainText($" {npmUpdateCommand}"); 469var shouldUpdateCli = await InteractionService.PromptConfirmAsync( 481return HandleProjectLocatorException(ex, InteractionService, Telemetry); 536InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.PendingMigrationsHeader); 539InteractionService.DisplaySubtleMessage($" - {descriptor.Title}"); 542InteractionService.DisplaySubtleMessage(UpdateCommandStrings.PendingMigrationsHint); 548InteractionService.DisplaySubtleMessage(MigrationStrings.NothingToMigrate); 552InteractionService.DisplayMessage(KnownEmojis.Gear, MigrationStrings.AvailableMigrationsHeader); 555InteractionService.DisplaySubtleMessage($" - {descriptor.Title}"); 561var confirmed = await InteractionService.PromptConfirmAsync( 567InteractionService.DisplaySubtleMessage(MigrationStrings.MigrationCancelled); 586InteractionService.DisplayMessage(KnownEmojis.Warning, UpdateCommandStrings.MigrationApplyFailedWarning); 630InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 634var shouldUpdateCli = await InteractionService.PromptConfirmAsync( 647InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 648InteractionService.DisplayPlainText($" {dotNetToolUpdateCommand}"); 649InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 656InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage); 657InteractionService.DisplayPlainText($" {npmUpdateCommand}"); 658InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 665InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 709InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NixSelfUpdateMessage); 710InteractionService.DisplayPlainText(" nix profile upgrade aspire-cli"); 711InteractionService.DisplayPlainText(" nix flake update <input-name>"); 751InteractionService.DisplayError( 759channel = await InteractionService.PromptForSelectionAsync( 777InteractionService.DisplayMessage(KnownEmojis.Package, $"Current CLI location: {currentExePath}"); 778InteractionService.DisplayMessage(KnownEmojis.UpButton, $"Updating to channel: {channel}"); 825await InteractionService.ShowStatusAsync( 834InteractionService.DisplayMessage(KnownEmojis.Package, UpdateCommandStrings.ExtractedNewCli); 856InteractionService.DisplayMessage(KnownEmojis.FloppyDisk, "Backing up current CLI..."); 868InteractionService.DisplayMessage(KnownEmojis.Wrench, $"Installing new CLI to {installDir}..."); 892InteractionService.DisplayMessage(KnownEmojis.Information, $"Note: {installDir} is not in your PATH. Add it to use the updated CLI globally."); 994InteractionService.DisplaySuccess($"Updated to version: {version}");
Commands\WaitCommand.cs (7)
92return CommandResult.FromExitCode(AppHostConnectionResultHandler.DisplayFailureAsError(result, InteractionService, CliExitCodes.FailedToFindProject)); 113var exitCode = await InteractionService.ShowStatusAsync( 131InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceNotFound, resourceName)); 137InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.WaitTimedOut, resourceName, statusLabel, timeoutSeconds)); 142InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceEnteredFailedState, resourceName, response.State ?? response.ErrorMessage)); 147InteractionService.DisplayPlainText(""); 152InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, WaitCommandStrings.ResourceReachedTargetStatus, resourceName, statusLabel, elapsed.TotalSeconds));