1 write to InteractionService
aspire (1)
Commands\BaseCommand.cs (1)
36InteractionService = interactionService;
341 references to InteractionService
aspire (341)
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)
144InteractionService.DisplayError($"Unknown language: {selectedProject.LanguageId}"); 148InteractionService.DisplayEmptyLine(); 149InteractionService.DisplayMessage(KnownEmojis.Information, $"Creating {languageInfo.DisplayName} AppHost..."); 150InteractionService.DisplayEmptyLine(); 152return await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, polyglotResult, _executionContext.WorkingDirectory, cancellationToken); 156if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller, InteractionService, Telemetry, cancellationToken)) 171InteractionService.DisplayEmptyLine(); 172InteractionService.DisplayMessage(KnownEmojis.Information, string.Format(CultureInfo.CurrentCulture, InitCommandStrings.SolutionDetected, initContext.SelectedSolutionFile.Name)); 173InteractionService.DisplayEmptyLine(); 179InteractionService.DisplayEmptyLine(); 180InteractionService.DisplayMessage(KnownEmojis.Information, InitCommandStrings.NoSolutionFoundCreatingSingleFileAppHost); 181InteractionService.DisplayEmptyLine(); 186return await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, initResult, workspaceRoot, cancellationToken); 203InteractionService.DisplayError( 213var (getSolutionExitCode, solutionProjects) = await InteractionService.ShowStatusAsync("Reading solution...", async () => 229InteractionService.DisplayLines(initContext.GetSolutionProjectsOutputCollector.GetLines()); 230InteractionService.DisplayError("Failed to get projects from solution."); 236_ = await InteractionService.ShowStatusAsync("Evaluating existing projects...", async () => 246InteractionService.DisplayMessage(KnownEmojis.CheckMark, InitCommandStrings.SolutionAlreadyInitialized); 262InteractionService.DisplayEmptyLine(); 263InteractionService.DisplayMarkdown(addExecutableProjectsMessage); 264InteractionService.DisplayEmptyLine(); 266var selectedProjects = await InteractionService.PromptForSelectionsAsync( 277InteractionService.DisplayEmptyLine(); 278InteractionService.DisplayMessage(KnownEmojis.Information, "The following projects will be added to the AppHost:"); 279InteractionService.DisplayEmptyLine(); 283InteractionService.DisplayMessage(KnownEmojis.CheckBoxWithCheck, project.ProjectFile.Name); 295InteractionService.DisplayEmptyLine(); 296InteractionService.DisplayMarkdown(addServiceDefaultsMessage); 297InteractionService.DisplayEmptyLine(); 306var selection = await InteractionService.PromptForSelectionAsync( 319initContext.ProjectsToAddServiceDefaultsTo = await InteractionService.PromptForSelectionsAsync( 338var nugetConfigPrompter = new NuGetConfigPrompter(InteractionService); 355var templateInstallResult = await InteractionService.ShowStatusAsync( 377InteractionService.DisplayLines(initContext.InstallTemplateOutputCollector.GetLines()); 378InteractionService.DisplayError("Failed to install Aspire templates."); 383var createResult = await InteractionService.ShowStatusAsync( 404InteractionService.DisplayLines(initContext.NewProjectOutputCollector.GetLines()); 405InteractionService.DisplayError($"Failed to create Aspire projects. Exit code: {createResult}"); 416InteractionService.DisplayError("Failed to find created AppHost or ServiceDefaults projects in template output."); 438var addAppHostResult = await InteractionService.ShowStatusAsync( 457InteractionService.DisplayLines(initContext.AddAppHostToSolutionOutputCollector.GetLines()); 458InteractionService.DisplayError($"Failed to add AppHost project to solution. Exit code: {addAppHostResult}"); 464var addServiceDefaultsResult = await InteractionService.ShowStatusAsync( 483InteractionService.DisplayLines(initContext.AddServiceDefaultsToSolutionOutputCollector.GetLines()); 484InteractionService.DisplayError($"Failed to add ServiceDefaults project to solution. Exit code: {addServiceDefaultsResult}"); 497var addRefResult = await InteractionService.ShowStatusAsync( 515InteractionService.DisplayLines(outputCollector.GetLines()); 516InteractionService.DisplayError($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}."); 531var addRefResult = await InteractionService.ShowStatusAsync( 549InteractionService.DisplayLines(outputCollector.GetLines()); 550InteractionService.DisplayError($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}."); 559InteractionService.DisplaySuccess(InitCommandStrings.AspireInitializationComplete); 583InteractionService.DisplayMessage(KnownEmojis.CheckMark, $"{appHostFileName} already exists in this directory."); 596InteractionService.DisplaySuccess($"Created {appHostFileName}"); 597InteractionService.DisplayMessage(KnownEmojis.Information, $"Run 'aspire run' to start your AppHost."); 608InteractionService.DisplayError("Single-file AppHost template not found."); 627InteractionService.DisplaySuccess(InitCommandStrings.AspireInitializationComplete); 720var allChannels = await InteractionService.ShowStatusAsync( 753var packagesFromChannels = await InteractionService.ShowStatusAsync("Searching for available template versions...", async () => 803InteractionService.DisplayEmptyLine(); 804InteractionService.DisplayMarkdown(templateSelectionMessage); 805InteractionService.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)
114var templateCommand = new TemplateCommand(template, ExecuteAsync, features, updateNotifier, executionContext, InteractionService, Telemetry); 153InteractionService.DisplayError($"Template '{parseResult.CommandResult.Command.Name}' is not available. Ensure the required runtime is installed."); 160InteractionService.DisplayError("No templates are available for the current environment."); 170InteractionService.DisplayPlainText($"{NewCommandStrings.SelectAProjectTemplate} {result.Description}"); 190return await InteractionService.ShowStatusAsync( 257InteractionService.DisplayError(resolveResult.ErrorMessage); 277var exitCode = await _agentInitCommand.PromptAndChainAsync(_hostEnvironment, InteractionService, templateResult.ExitCode, workspaceRoot, cancellationToken); 279if (templateResult.OutputPath is not null && ExtensionHelper.IsExtensionHost(InteractionService, out var extensionInteractionService, out _))
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 (9)
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}"); 222InteractionService.DisplayRawText(output, consoleOverride: ConsoleOutput.Standard);
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)
120InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 121InteractionService.DisplayPlainText(" dotnet tool update -g Aspire.Cli"); 127InteractionService.DisplayError("CLI self-update is not available in this environment."); 137InteractionService.DisplayCancellationMessage(); 159var allChannels = await InteractionService.ShowStatusAsync( 183channel = await InteractionService.PromptForSelectionAsync( 211var shouldUpdateCli = await InteractionService.ConfirmAsync( 227InteractionService.DisplayError(message); 234InteractionService.DisplayError(message); 245var shouldUpdateCli = await InteractionService.ConfirmAsync( 257return HandleProjectLocatorException(ex, InteractionService, Telemetry); 261InteractionService.DisplayCancellationMessage(); 281channel = await InteractionService.PromptForSelectionAsync( 294InteractionService.DisplayError("Unable to determine the current executable path."); 298InteractionService.DisplayMessage(KnownEmojis.Package, $"Current CLI location: {currentExePath}"); 299InteractionService.DisplayMessage(KnownEmojis.UpButton, $"Updating to channel: {channel}"); 325InteractionService.DisplayCancellationMessage(); 332InteractionService.DisplayError(errorMessage); 359await InteractionService.ShowStatusAsync( 368InteractionService.DisplayMessage(KnownEmojis.Package, UpdateCommandStrings.ExtractedNewCli); 382InteractionService.DisplayMessage(KnownEmojis.FloppyDisk, "Backing up current CLI..."); 395InteractionService.DisplayMessage(KnownEmojis.Wrench, $"Installing new CLI to {installDir}..."); 422InteractionService.DisplayMessage(KnownEmojis.Information, $"Note: {installDir} is not in your PATH. Add it to use the updated CLI globally."); 513InteractionService.DisplaySuccess($"Updated to version: {version}");