1 write to InteractionService
aspire (1)
Commands\BaseCommand.cs (1)
36InteractionService = interactionService;
340 references to InteractionService
aspire (340)
Commands\AddCommand.cs (16)
88if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller, InteractionService, Telemetry, cancellationToken)) 115InteractionService.DisplayError(ex.Message); 121var packagesWithChannels = await InteractionService.ShowStatusAsync( 171InteractionService.DisplayError(AddCommandStrings.NoPackagesFound); 229InteractionService.DisplayMessage(KnownEmojis.Information, AddCommandStrings.StoppedRunningInstance); 233InteractionService.DisplayError(AddCommandStrings.UnableToStopRunningInstances); 237var success = await InteractionService.ShowStatusAsync( 246InteractionService.DisplayLines(outputCollector.GetLines()); 248InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, ExitCodeConstants.FailedToAddPackage, ExecutionContext.LogFilePath)); 252InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version)); 257return HandleProjectLocatorException(ex, InteractionService, Telemetry); 261InteractionService.DisplayCancellationMessage(); 267InteractionService.DisplayError(ex.Message); 274InteractionService.DisplayLines(outputCollector.GetLines()); 278InteractionService.DisplayError(errorMessage); 328InteractionService.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoPackagesMatchedSearchTerm, searchTerm));
Commands\BaseCommand.cs (1)
66InteractionService.DisplayEmptyLine();
Commands\CacheCommand.cs (4)
22var clearCommand = new ClearCommand(InteractionService, features, updateNotifier, executionContext, telemetry); 153InteractionService.DisplayMessage(KnownEmojis.Information, CacheCommandStrings.CacheAlreadyEmpty); 157InteractionService.DisplaySuccess(CacheCommandStrings.CacheCleared); 166InteractionService.DisplayError(errorMessage);
Commands\CertificatesCleanCommand.cs (5)
32InteractionService.DisplayMessage(KnownEmojis.Information, CertificatesCommandStrings.CleanProgress); 38InteractionService.DisplaySuccess(CertificatesCommandStrings.CleanSuccess); 44InteractionService.DisplayMessage(KnownEmojis.Warning, CertificatesCommandStrings.CleanCancelled); 49InteractionService.DisplayError(details); 50InteractionService.DisplayError(CertificatesCommandStrings.CleanFailure);
Commands\CertificatesTrustCommand.cs (5)
33InteractionService.DisplayMessage(KnownEmojis.Information, CertificatesCommandStrings.TrustProgress); 39InteractionService.DisplaySuccess(CertificatesCommandStrings.TrustSuccess); 45InteractionService.DisplayMessage(KnownEmojis.Warning, CertificatesCommandStrings.TrustCancelled); 50InteractionService.DisplayError(details); 51InteractionService.DisplayError(CertificatesCommandStrings.TrustFailure);
Commands\ConfigCommand.cs (48)
32var getCommand = new GetCommand(configurationService, InteractionService, features, updateNotifier, executionContext, telemetry); 33var setCommand = new SetCommand(configurationService, InteractionService, features, updateNotifier, executionContext, telemetry); 34var listCommand = new ListCommand(configurationService, InteractionService, features, updateNotifier, executionContext, telemetry); 35var deleteCommand = new DeleteCommand(configurationService, InteractionService, features, updateNotifier, executionContext, telemetry); 36var infoCommand = new InfoCommand(configurationService, InteractionService, features, updateNotifier, executionContext, telemetry); 89InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 98var key = await InteractionService.PromptForStringAsync(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken); 108InteractionService.DisplayPlainText(value); 113InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 152InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 158InteractionService.DisplayError(ErrorStrings.ConfigurationValueRequired); 167var key = await InteractionService.PromptForStringAsync(ConfigCommandStrings.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken); 168var value = await InteractionService.PromptForStringAsync(ConfigCommandStrings.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken); 169var isGlobal = await InteractionService.PromptForSelectionAsync( 183InteractionService.DisplaySuccess(isGlobal 195InteractionService.DisplayError(errorMessage); 229if (InteractionService is ExtensionInteractionService extensionInteractionService) 245InteractionService.DisplayMessage(KnownEmojis.Information, ConfigCommandStrings.NoConfigurationValuesFound); 263InteractionService.DisplayEmptyLine(); 285InteractionService.DisplayEmptyLine(); 286InteractionService.DisplayMarkdown($"**{ConfigCommandStrings.AvailableFeaturesHeader}:**"); 293InteractionService.DisplayMarkupLine($" [cyan]{feature.Name.EscapeMarkup()}[/] [dim](default: {defaultText})[/]"); 294InteractionService.DisplayMarkupLine($" [dim]{feature.Description.EscapeMarkup()}[/]"); 296InteractionService.DisplayEmptyLine(); 297InteractionService.DisplayMarkupLine($" [dim]{ConfigCommandStrings.SetFeatureHint.EscapeMarkup()}[/]"); 301InteractionService.DisplayMarkupLine($" [dim]{ConfigCommandStrings.ListCommand_AllFeaturesHint.EscapeMarkup()}[/]"); 340InteractionService.DisplayRenderable(table); 371InteractionService.DisplayError(ErrorStrings.ConfigurationKeyRequired); 380var key = await InteractionService.PromptForStringAsync(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken); 385InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 389var isGlobal = await InteractionService.PromptForSelectionAsync( 408InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedGlobally, key)); 412InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedLocally, key)); 419InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key)); 427InteractionService.DisplayError(errorMessage); 477if (InteractionService is ConsoleInteractionService consoleService) 484InteractionService.DisplayPlainText(json); 489InteractionService.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_LocalSettingsPath}:**"); 490InteractionService.DisplayPlainText($" {localPath}"); 491InteractionService.DisplayEmptyLine(); 492InteractionService.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_GlobalSettingsPath}:**"); 493InteractionService.DisplayPlainText($" {globalPath}"); 494InteractionService.DisplayEmptyLine(); 495InteractionService.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_AvailableFeatures}:**"); 498InteractionService.DisplayMarkupLine($" [cyan]{feature.Name.EscapeMarkup()}[/] - {feature.Description.EscapeMarkup()} [dim](default: {feature.DefaultValue})[/]"); 500InteractionService.DisplayEmptyLine(); 501InteractionService.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_SettingsProperties}:**"); 505InteractionService.DisplayMarkupLine($" {requiredText}[cyan]{property.Name.EscapeMarkup()}[/] ([yellow]{property.Type.EscapeMarkup()}[/]) - {property.Description.EscapeMarkup()}");
Commands\DoCommand.cs (2)
51if (string.IsNullOrEmpty(step) && ExtensionHelper.IsExtensionHost(InteractionService, out _, out _)) 53step = await InteractionService.PromptForStringAsync(
Commands\DocsGetCommand.cs (4)
71var doc = await InteractionService.ShowStatusAsync( 77InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.DocumentNotFound, slug)); 85InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 92InteractionService.DisplayRawText(formatted, ConsoleOutput.Standard);
Commands\DocsListCommand.cs (5)
58var docs = await InteractionService.ShowStatusAsync( 64InteractionService.DisplayError(DocsCommandStrings.NoDocumentationAvailable); 72InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 76InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundDocumentationPages, docs.Count)); 91InteractionService.DisplayRenderable(table);
Commands\DocsSearchCommand.cs (5)
72var response = await InteractionService.ShowStatusAsync( 78InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.NoResultsFound, query)); 86InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 90InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundSearchResults, response.Results.Count, query)); 108InteractionService.DisplayRenderable(table);
Commands\DoctorCommand.cs (2)
48var results = await InteractionService.ShowStatusAsync( 86InteractionService.DisplayRawText(json, ConsoleOutput.Standard);
Commands\ExecCommand.cs (23)
74if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller, InteractionService, Telemetry, cancellationToken)) 90InteractionService.DisplayError(ExecCommandStrings.TargetResourceNotSpecified); 98InteractionService.DisplayError(ExecCommandStrings.NoCommandSpecified); 106InteractionService.DisplayError(ExecCommandStrings.FailedToParseCommand); 132InteractionService.DisplayError(ErrorStrings.CommandNotSupportedWithSingleFileAppHost); 144appHostCompatibilityCheck = await AppHostHelper.CheckAppHostCompatibilityAsync(_runner, InteractionService, effectiveAppHostProjectFile, Telemetry, ExecutionContext.WorkingDirectory, ExecutionContext.LogFilePath, cancellationToken); 183backchannel = await InteractionService.ShowStatusAsync( 191InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 201commandExitCode = await InteractionService.ShowStatusAsync<int?>( 210InteractionService.WriteConsoleLog(output.Text, output.LineNumber, output.Type, output.IsErrorMessage); 224_ = await InteractionService.ShowStatusAsync<int>( 245InteractionService.DisplayLines(runOutputCollector.GetLines()); 246InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun, ExecutionContext.LogFilePath)); 256InteractionService.DisplayLines(runOutputCollector.GetLines()); 257InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun, ExecutionContext.LogFilePath)); 263InteractionService.DisplayCancellationMessage(); 268return HandleProjectLocatorException(ex, InteractionService, Telemetry); 273return InteractionService.DisplayIncompatibleVersionError( 282InteractionService.DisplayError(errorMessage); 289InteractionService.DisplayError(errorMessage); 290InteractionService.DisplayLines(runOutputCollector.GetLines()); 297InteractionService.DisplayError(errorMessage); 298InteractionService.DisplayLines(runOutputCollector.GetLines());
Commands\ExtensionInternalCommand.cs (1)
52InteractionService.DisplayRawText(json, ConsoleOutput.Standard);
Commands\InitCommand.cs (63)
142InteractionService.DisplayError($"Unknown language: {selectedProject.LanguageId}"); 146InteractionService.DisplayEmptyLine(); 147InteractionService.DisplayMessage(KnownEmojis.Information, $"Creating {languageInfo.DisplayName} AppHost..."); 148InteractionService.DisplayEmptyLine(); 150return await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, polyglotResult, _executionContext.WorkingDirectory, cancellationToken); 154if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller, InteractionService, Telemetry, cancellationToken)) 169InteractionService.DisplayEmptyLine(); 170InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.SolutionDetected, initContext.SelectedSolutionFile.Name)); 171InteractionService.DisplayEmptyLine(); 177InteractionService.DisplayEmptyLine(); 178InteractionService.DisplayMessage(KnownEmojis.Information, InitCommandStrings.NoSolutionFoundCreatingSingleFileAppHost); 179InteractionService.DisplayEmptyLine(); 184return await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, initResult, workspaceRoot, cancellationToken); 201InteractionService.DisplayError( 211var (getSolutionExitCode, solutionProjects) = await InteractionService.ShowStatusAsync("Reading solution...", async () => 227InteractionService.DisplayLines(initContext.GetSolutionProjectsOutputCollector.GetLines()); 228InteractionService.DisplayError("Failed to get projects from solution."); 234_ = await InteractionService.ShowStatusAsync("Evaluating existing projects...", async () => 244InteractionService.DisplayMessage(KnownEmojis.CheckMark, InitCommandStrings.SolutionAlreadyInitialized); 260InteractionService.DisplayEmptyLine(); 261InteractionService.DisplayMarkdown(addExecutableProjectsMessage); 262InteractionService.DisplayEmptyLine(); 264var selectedProjects = await InteractionService.PromptForSelectionsAsync( 275InteractionService.DisplayEmptyLine(); 276InteractionService.DisplayMessage(KnownEmojis.Information, "The following projects will be added to the AppHost:"); 277InteractionService.DisplayEmptyLine(); 281InteractionService.DisplayMessage(KnownEmojis.CheckBoxWithCheck, project.ProjectFile.Name); 293InteractionService.DisplayEmptyLine(); 294InteractionService.DisplayMarkdown(addServiceDefaultsMessage); 295InteractionService.DisplayEmptyLine(); 304var selection = await InteractionService.PromptForSelectionAsync( 317initContext.ProjectsToAddServiceDefaultsTo = await InteractionService.PromptForSelectionsAsync( 336var nugetConfigPrompter = new NuGetConfigPrompter(InteractionService); 353var templateInstallResult = await InteractionService.ShowStatusAsync( 375InteractionService.DisplayLines(initContext.InstallTemplateOutputCollector.GetLines()); 376InteractionService.DisplayError("Failed to install Aspire templates."); 381var createResult = await InteractionService.ShowStatusAsync( 402InteractionService.DisplayLines(initContext.NewProjectOutputCollector.GetLines()); 403InteractionService.DisplayError($"Failed to create Aspire projects. Exit code: {createResult}"); 414InteractionService.DisplayError("Failed to find created AppHost or ServiceDefaults projects in template output."); 436var addAppHostResult = await InteractionService.ShowStatusAsync( 455InteractionService.DisplayLines(initContext.AddAppHostToSolutionOutputCollector.GetLines()); 456InteractionService.DisplayError($"Failed to add AppHost project to solution. Exit code: {addAppHostResult}"); 462var addServiceDefaultsResult = await InteractionService.ShowStatusAsync( 481InteractionService.DisplayLines(initContext.AddServiceDefaultsToSolutionOutputCollector.GetLines()); 482InteractionService.DisplayError($"Failed to add ServiceDefaults project to solution. Exit code: {addServiceDefaultsResult}"); 495var addRefResult = await InteractionService.ShowStatusAsync( 513InteractionService.DisplayLines(outputCollector.GetLines()); 514InteractionService.DisplayError($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}."); 529var addRefResult = await InteractionService.ShowStatusAsync( 547InteractionService.DisplayLines(outputCollector.GetLines()); 548InteractionService.DisplayError($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}."); 557InteractionService.DisplaySuccess(InitCommandStrings.AspireInitializationComplete); 581InteractionService.DisplayMessage(KnownEmojis.CheckMark, $"{appHostFileName} already exists in this directory."); 594InteractionService.DisplaySuccess($"Created {appHostFileName}"); 595InteractionService.DisplayMessage(KnownEmojis.Information, $"Run 'aspire run' to start your AppHost."); 606InteractionService.DisplayError("Single-file AppHost template not found."); 625InteractionService.DisplaySuccess(InitCommandStrings.AspireInitializationComplete); 718var allChannels = await InteractionService.ShowStatusAsync( 751var packagesFromChannels = await InteractionService.ShowStatusAsync("Searching for available template versions...", async () => 801InteractionService.DisplayEmptyLine(); 802InteractionService.DisplayMarkdown(templateSelectionMessage); 803InteractionService.DisplayEmptyLine();
Commands\McpInitCommand.cs (2)
60InteractionService.DisplayMarkupLine($"[yellow]⚠ {McpCommandStrings.DeprecatedCommandWarning}[/]"); 61InteractionService.DisplayEmptyLine();
Commands\McpStartCommand.cs (1)
39InteractionService.DisplayMarkupLine($"[yellow]⚠ {McpCommandStrings.DeprecatedCommandWarning}[/]");
Commands\NewCommand.cs (8)
112var templateCommand = new TemplateCommand(template, ExecuteAsync, features, updateNotifier, executionContext, InteractionService, Telemetry); 151InteractionService.DisplayError($"Template '{parseResult.CommandResult.Command.Name}' is not available. Ensure the required runtime is installed."); 158InteractionService.DisplayError("No templates are available for the current environment."); 168InteractionService.DisplayPlainText($"{NewCommandStrings.SelectAProjectTemplate} {result.Description}"); 188return await InteractionService.ShowStatusAsync( 255InteractionService.DisplayError(resolveResult.ErrorMessage); 273if (templateResult.OutputPath is not null && ExtensionHelper.IsExtensionHost(InteractionService, out var extensionInteractionService, out _)) 279return await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, templateResult.ExitCode, workspaceRoot, cancellationToken);
Commands\PipelineCommandBase.cs (30)
130if (ExtensionHelper.IsExtensionHost(InteractionService, out var extensionInteractionService, out _) 220InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 223var backchannel = await InteractionService.ShowStatusAsync(GetProgressMessage(parseResult), async () => 242&& ExtensionHelper.IsExtensionHost(InteractionService, out _, out _)) 278InteractionService.DisplayLines(outputCollector.GetLines()); 300InteractionService.DisplayError(canceledMessage); 307return HandleProjectLocatorException(ex, InteractionService, Telemetry); 320InteractionService.DisplayError(ex.Message); 329InteractionService.DisplayError(errorMessage); 332InteractionService.DisplayLines(outputCollector.GetLines()); 342InteractionService.DisplayError(errorMessage); 345InteractionService.DisplayLines(outputCollector.GetLines()); 355InteractionService.DisplayError(errorMessage); 358InteractionService.DisplayLines(outputCollector.GetLines()); 395InteractionService.DisplaySubtleMessage($"[[DEBUG]] Step {stepCounter++}: {statusText}", allowMarkup: true); 404InteractionService.DisplaySubtleMessage($"[[DEBUG]] Step {activity.Data.Id}: {status} - {statusText}", allowMarkup: true); 439InteractionService.DisplaySubtleMessage(formattedMessage, allowMarkup: true); 450InteractionService.DisplaySubtleMessage($"[[DEBUG]] Task {activity.Data.Id} ({stepId}): {status} - {statusText}", allowMarkup: true); 454InteractionService.DisplaySubtleMessage($"[[DEBUG]] {completionMessage}", allowMarkup: true); 460InteractionService.DisplaySubtleMessage($"[[DEBUG]] Task {activity.Data.Id} ({stepId}): {statusText}", allowMarkup: true); 472InteractionService.DisplaySubtleMessage($"[[DEBUG]] {OperationCompletedPrefix}: {status} - {statusText}", allowMarkup: true); 811InteractionService.DisplayError(error); 817InputType.Text => await InteractionService.PromptForStringAsync( 823InputType.SecretText => await InteractionService.PromptForStringAsync( 832InputType.Boolean => (await InteractionService.ConfirmAsync(promptText, defaultValue: ParseBooleanValue(input.Value), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(), 836_ => await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken) 844return await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken); 858var (value, displayText) = await InteractionService.PromptForSelectionAsync( 866return await InteractionService.PromptForStringAsync(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken); 886return await InteractionService.PromptForStringAsync(
Commands\RenderCommand.cs (24)
56var choice = await InteractionService.PromptForSelectionAsync( 91InteractionService.DisplayMessage(emoji, $"DisplayMessage with {emoji.Name}"); 101await InteractionService.ShowStatusAsync( 116await InteractionService.ShowStatusAsync( 131await InteractionService.ShowStatusAsync( 145InteractionService.DisplayMessage(KnownEmojis.Rocket, "Starting mixed methods test..."); 146InteractionService.DisplayEmptyLine(); 148InteractionService.DisplaySuccess("Step 1 complete!"); 149InteractionService.DisplaySubtleMessage("This is a subtle hint."); 150InteractionService.DisplayMessage(KnownEmojis.MagnifyingGlassTiltedLeft, "Searching for [packages]..."); 151InteractionService.DisplayEmptyLine(); 153InteractionService.DisplayMarkupLine("[bold green]Bold green markup[/] and [dim]dim text[/]"); 154InteractionService.DisplayPlainText("Plain text with [brackets] that should appear literally."); 155InteractionService.DisplayEmptyLine(); 157await InteractionService.ShowStatusAsync( 166InteractionService.ShowStatus( 171InteractionService.DisplayEmptyLine(); 173var name = await InteractionService.PromptForStringAsync( 178InteractionService.DisplayMessage(KnownEmojis.CheckMark, $"You entered: {name}"); 180var confirmed = await InteractionService.ConfirmAsync( 187InteractionService.DisplaySuccess("Confirmed!"); 191InteractionService.DisplayError("Cancelled."); 194InteractionService.DisplayEmptyLine(); 195InteractionService.DisplayMessage(KnownEmojis.StopSign, "Mixed methods test complete.");
Commands\RestoreCommand.cs (6)
83InteractionService.DisplayError(RestoreCommandStrings.UnrecognizedAppHostType); 89if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller, InteractionService, Telemetry, cancellationToken)) 132InteractionService.DisplayError(RestoreCommandStrings.UnrecognizedAppHostType); 137InteractionService.DisplayCancellationMessage(); 142return HandleProjectLocatorException(ex, InteractionService, Telemetry); 148InteractionService.DisplayError(errorMessage);
Commands\RunCommand.cs (25)
117if (ExtensionHelper.IsExtensionHost(InteractionService, out _, out _)) 137var isExtensionHost = ExtensionHelper.IsExtensionHost(InteractionService, out _, out _); 148InteractionService.DisplayError(RunCommandStrings.FormatRequiresDetach); 157InteractionService.DisplayError(RunCommandStrings.NoBuildNotSupportedWithWatchMode); 169if (ExtensionHelper.IsExtensionHost(InteractionService, out var extensionInteractionService, out _) 195InteractionService.DisplayError("Unrecognized app host type."); 207InteractionService.DisplayMessage(KnownEmojis.Warning, RunCommandStrings.IsolatedModeRunningInstanceWarning); 242InteractionService.DisplayLines(outputCollector.GetLines()); 244InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ProjectCouldNotBeBuilt, ExecutionContext.LogFilePath)); 251InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 255var backchannel = await InteractionService.ShowStatusAsync( 263var dashboardUrls = await InteractionService.ShowStatusAsync( 269InteractionService.DisplayError(RunCommandStrings.DashboardFailedToStart); 276InteractionService, 339await InteractionService.DisplayLiveAsync(BuildLiveRenderable(), async updateTarget => 358if (ExtensionHelper.IsExtensionHost(InteractionService, out var extInteractionService, out _)) 369InteractionService.DisplayCancellationMessage(); 374return HandleProjectLocatorException(ex, InteractionService, Telemetry); 379return InteractionService.DisplayIncompatibleVersionError(ex, ex.AspireHostingVersion ?? ex.RequiredCapability); 385InteractionService.DisplayError(errorMessage); 392InteractionService.DisplayError(errorMessage); 394InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath)); 407InteractionService.DisplayError(errorMessage); 409InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath)); 433InteractionService.DisplayRenderable(BuildCtrlCRenderable(longestLocalizedLengthWithColon));
Commands\Sdk\SdkDumpCommand.cs (8)
85InteractionService.DisplayError($"Integration project not found: {projectFile.FullName}"); 101InteractionService.DisplayError($"Invalid package format '{arg}'. Expected PackageName@Version (e.g. Aspire.Hosting.Redis@9.2.0)."); 107InteractionService.DisplayError($"Invalid version '{packageVersion}' in '{arg}'. Expected a valid NuGet version (e.g. 9.2.0)."); 116InteractionService.DisplayError($"Invalid integration argument '{arg}'. Expected a .csproj path or PackageName@Version format."); 127return await InteractionService.ShowStatusAsync( 156InteractionService.DisplayError("Failed to build capability scanner."); 161InteractionService.DisplayMessage(KnownEmojis.Wrench, line); 217InteractionService.DisplaySuccess($"Capabilities written to {outputFile.FullName}");
Commands\Sdk\SdkGenerateCommand.cs (7)
71InteractionService.DisplayError($"Integration project not found: {integrationProject.FullName}"); 77InteractionService.DisplayError($"Expected a .csproj file, got: {integrationProject.Extension}"); 85InteractionService.DisplayError($"Unsupported language: {language}"); 95return await InteractionService.ShowStatusAsync( 150InteractionService.DisplayError("Failed to build SDK generation server."); 155InteractionService.DisplayMessage(KnownEmojis.Wrench, line); 195InteractionService.DisplaySuccess($"Generated {generatedFiles.Count} files in {outputDir.FullName}");
Commands\SecretDeleteCommand.cs (3)
52InteractionService.DisplayError(SecretCommandStrings.CouldNotFindAppHost); 58InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup())); 63InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretDeleteSuccess, key));
Commands\SecretGetCommand.cs (3)
52InteractionService.DisplayError(SecretCommandStrings.CouldNotFindAppHost); 59InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretNotFound, key.EscapeMarkup())); 64InteractionService.DisplayPlainText(value);
Commands\SecretListCommand.cs (4)
52InteractionService.DisplayError(SecretCommandStrings.CouldNotFindAppHost); 67InteractionService.DisplayRawText(json, ConsoleOutput.Standard); 73InteractionService.DisplayMessage(KnownEmojis.Information, SecretCommandStrings.NoSecretsConfigured); 88InteractionService.DisplayRenderable(table);
Commands\SecretPathCommand.cs (2)
42InteractionService.DisplayError(SecretCommandStrings.CouldNotFindAppHost); 46InteractionService.DisplayPlainText(result.Store.FilePath);
Commands\SecretSetCommand.cs (2)
60InteractionService.DisplayError(SecretCommandStrings.CouldNotFindAppHost); 67InteractionService.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, SecretCommandStrings.SecretSetSuccess, key));
Commands\SetupCommand.cs (7)
55InteractionService.DisplayError("Could not determine the CLI executable path."); 67InteractionService.DisplayError("Could not determine the installation path."); 73var exitCode = await InteractionService.ShowStatusAsync( 84InteractionService.DisplayMessage(KnownEmojis.Information, "This CLI binary does not contain an embedded bundle. No extraction needed."); 88InteractionService.DisplayMessage(KnownEmojis.CheckMark, "Bundle is already extracted and up to date. Use --force to re-extract."); 92InteractionService.DisplayMessage(KnownEmojis.CheckMark, $"Bundle extracted to {installPath}"); 96InteractionService.DisplayError($"Bundle was extracted to {installPath} but layout validation failed.");
Commands\UpdateCommand.cs (24)
116InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 117InteractionService.DisplayPlainText(" dotnet tool update -g Aspire.Cli"); 123InteractionService.DisplayError("CLI self-update is not available in this environment."); 133InteractionService.DisplayCancellationMessage(); 155var allChannels = await InteractionService.ShowStatusAsync( 179channel = await InteractionService.PromptForSelectionAsync( 207var shouldUpdateCli = await InteractionService.ConfirmAsync( 223InteractionService.DisplayError(message); 230InteractionService.DisplayError(message); 241var shouldUpdateCli = await InteractionService.ConfirmAsync( 253return HandleProjectLocatorException(ex, InteractionService, Telemetry); 257InteractionService.DisplayCancellationMessage(); 277channel = await InteractionService.PromptForSelectionAsync( 290InteractionService.DisplayError("Unable to determine the current executable path."); 294InteractionService.DisplayMessage(KnownEmojis.Package, $"Current CLI location: {currentExePath}"); 295InteractionService.DisplayMessage(KnownEmojis.UpButton, $"Updating to channel: {channel}"); 321InteractionService.DisplayCancellationMessage(); 328InteractionService.DisplayError(errorMessage); 355await InteractionService.ShowStatusAsync( 364InteractionService.DisplayMessage(KnownEmojis.Package, UpdateCommandStrings.ExtractedNewCli); 378InteractionService.DisplayMessage(KnownEmojis.FloppyDisk, "Backing up current CLI..."); 391InteractionService.DisplayMessage(KnownEmojis.Wrench, $"Installing new CLI to {installDir}..."); 418InteractionService.DisplayMessage(KnownEmojis.Information, $"Note: {installDir} is not in your PATH. Add it to use the updated CLI globally."); 509InteractionService.DisplaySuccess($"Updated to version: {version}");