1 write to InteractionService
aspire (1)
Commands\BaseCommand.cs (1)
36
InteractionService
= interactionService;
268 references to InteractionService
aspire (268)
Commands\AddCommand.cs (15)
89
if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller,
InteractionService
, _features, Telemetry, _hostEnvironment, cancellationToken))
112
var packagesWithChannels = await
InteractionService
.ShowStatusAsync(
162
InteractionService
.DisplayError(AddCommandStrings.NoPackagesFound);
222
InteractionService
.DisplayMessage("information_source", AddCommandStrings.StoppedRunningInstance);
226
InteractionService
.DisplayError(AddCommandStrings.UnableToStopRunningInstances);
231
var success = await
InteractionService
.ShowStatusAsync(
240
InteractionService
.DisplayLines(outputCollector.GetLines());
242
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, ExitCodeConstants.FailedToAddPackage, ExecutionContext.LogFilePath));
246
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageAddedSuccessfully, selectedNuGetPackage.Package.Id, selectedNuGetPackage.Package.Version));
251
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
255
InteractionService
.DisplayCancellationMessage();
261
InteractionService
.DisplayError(ex.Message);
268
InteractionService
.DisplayLines(outputCollector.GetLines());
272
InteractionService
.DisplayError(errorMessage);
318
InteractionService
.DisplaySubtleMessage(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.NoPackagesMatchedSearchTerm, searchTerm));
Commands\BaseCommand.cs (1)
66
InteractionService
.DisplayEmptyLine();
Commands\CacheCommand.cs (4)
22
var clearCommand = new ClearCommand(
InteractionService
, features, updateNotifier, executionContext, telemetry);
153
InteractionService
.DisplayMessage("information", CacheCommandStrings.CacheAlreadyEmpty);
157
InteractionService
.DisplaySuccess(CacheCommandStrings.CacheCleared);
166
InteractionService
.DisplayError(errorMessage);
Commands\ConfigCommand.cs (45)
32
var getCommand = new GetCommand(configurationService,
InteractionService
, features, updateNotifier, executionContext, telemetry);
33
var setCommand = new SetCommand(configurationService,
InteractionService
, features, updateNotifier, executionContext, telemetry);
34
var listCommand = new ListCommand(configurationService,
InteractionService
, features, updateNotifier, executionContext, telemetry);
35
var deleteCommand = new DeleteCommand(configurationService,
InteractionService
, features, updateNotifier, executionContext, telemetry);
36
var infoCommand = new InfoCommand(configurationService,
InteractionService
, features, updateNotifier, executionContext, telemetry);
89
InteractionService
.DisplayError(ErrorStrings.ConfigurationKeyRequired);
98
var key = await
InteractionService
.PromptForStringAsync(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
108
InteractionService
.DisplayPlainText(value);
113
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
152
InteractionService
.DisplayError(ErrorStrings.ConfigurationKeyRequired);
158
InteractionService
.DisplayError(ErrorStrings.ConfigurationValueRequired);
167
var key = await
InteractionService
.PromptForStringAsync(ConfigCommandStrings.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
168
var value = await
InteractionService
.PromptForStringAsync(ConfigCommandStrings.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken);
169
var isGlobal = await
InteractionService
.PromptForSelectionAsync(
183
InteractionService
.DisplaySuccess(isGlobal
195
InteractionService
.DisplayError(errorMessage);
213
if (
InteractionService
is ExtensionInteractionService extensionInteractionService)
229
InteractionService
.DisplayMessage("information", ConfigCommandStrings.NoConfigurationValuesFound);
259
InteractionService
.DisplayEmptyLine();
260
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.AvailableFeaturesHeader}:**");
264
InteractionService
.DisplayMarkupLine($" [cyan]{feature.Name.EscapeMarkup()}[/] [dim](default: {defaultText})[/]");
265
InteractionService
.DisplayMarkupLine($" [dim]{feature.Description.EscapeMarkup()}[/]");
267
InteractionService
.DisplayEmptyLine();
268
InteractionService
.DisplayMarkupLine($" [dim]{ConfigCommandStrings.SetFeatureHint.EscapeMarkup()}[/]");
327
InteractionService
.DisplayError(ErrorStrings.ConfigurationKeyRequired);
336
var key = await
InteractionService
.PromptForStringAsync(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
341
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
345
var isGlobal = await
InteractionService
.PromptForSelectionAsync(
364
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedGlobally, key));
368
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, ConfigCommandStrings.ConfigurationKeyDeletedLocally, key));
375
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
383
InteractionService
.DisplayError(errorMessage);
432
if (
InteractionService
is ConsoleInteractionService consoleService)
439
InteractionService
.DisplayPlainText(json);
444
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_LocalSettingsPath}:**");
445
InteractionService
.DisplayPlainText($" {localPath}");
446
InteractionService
.DisplayEmptyLine();
447
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_GlobalSettingsPath}:**");
448
InteractionService
.DisplayPlainText($" {globalPath}");
449
InteractionService
.DisplayEmptyLine();
450
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_AvailableFeatures}:**");
453
InteractionService
.DisplayMarkupLine($" [cyan]{feature.Name.EscapeMarkup()}[/] - {feature.Description.EscapeMarkup()} [dim](default: {feature.DefaultValue})[/]");
455
InteractionService
.DisplayEmptyLine();
456
InteractionService
.DisplayMarkdown($"**{ConfigCommandStrings.InfoCommand_SettingsProperties}:**");
460
InteractionService
.DisplayMarkupLine($" {requiredText}[cyan]{property.Name.EscapeMarkup()}[/] ([yellow]{property.Type}[/]) - {property.Description.EscapeMarkup()}");
Commands\DocsGetCommand.cs (4)
71
var doc = await
InteractionService
.ShowStatusAsync(
77
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.DocumentNotFound, slug));
85
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
92
InteractionService
.DisplayRawText(formatted, ConsoleOutput.Standard);
Commands\DocsListCommand.cs (4)
58
var docs = await
InteractionService
.ShowStatusAsync(
64
InteractionService
.DisplayError(DocsCommandStrings.NoDocumentationAvailable);
72
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
76
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundDocumentationPages, docs.Count));
Commands\DocsSearchCommand.cs (4)
72
var response = await
InteractionService
.ShowStatusAsync(
78
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.NoResultsFound, query));
86
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
90
InteractionService
.DisplaySuccess(string.Format(CultureInfo.CurrentCulture, DocsCommandStrings.FoundSearchResults, response.Results.Count, query));
Commands\DoctorCommand.cs (2)
48
var results = await
InteractionService
.ShowStatusAsync(
86
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
Commands\ExecCommand.cs (23)
82
if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller,
InteractionService
, _features, Telemetry, _hostEnvironment, cancellationToken))
98
InteractionService
.DisplayError(ExecCommandStrings.TargetResourceNotSpecified);
106
InteractionService
.DisplayError(ExecCommandStrings.NoCommandSpecified);
114
InteractionService
.DisplayError(ExecCommandStrings.FailedToParseCommand);
140
InteractionService
.DisplayError(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
152
appHostCompatibilityCheck = await AppHostHelper.CheckAppHostCompatibilityAsync(_runner,
InteractionService
, effectiveAppHostProjectFile, Telemetry, ExecutionContext.WorkingDirectory, ExecutionContext.LogFilePath, cancellationToken);
191
backchannel = await
InteractionService
.ShowStatusAsync(
199
InteractionService
.DisplayMessage("bug", InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost);
209
commandExitCode = await
InteractionService
.ShowStatusAsync<int?>(
218
InteractionService
.WriteConsoleLog(output.Text, output.LineNumber, output.Type, output.IsErrorMessage);
232
_ = await
InteractionService
.ShowStatusAsync<int>(
253
InteractionService
.DisplayLines(runOutputCollector.GetLines());
254
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun, ExecutionContext.LogFilePath));
264
InteractionService
.DisplayLines(runOutputCollector.GetLines());
265
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun, ExecutionContext.LogFilePath));
271
InteractionService
.DisplayCancellationMessage();
276
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
281
return
InteractionService
.DisplayIncompatibleVersionError(
290
InteractionService
.DisplayError(errorMessage);
297
InteractionService
.DisplayError(errorMessage);
298
InteractionService
.DisplayLines(runOutputCollector.GetLines());
305
InteractionService
.DisplayError(errorMessage);
306
InteractionService
.DisplayLines(runOutputCollector.GetLines());
Commands\ExtensionInternalCommand.cs (1)
52
InteractionService
.DisplayRawText(json, ConsoleOutput.Standard);
Commands\InitCommand.cs (59)
150
InteractionService
.DisplayError($"Unknown language: {selectedProject.LanguageId}");
154
InteractionService
.DisplayEmptyLine();
155
InteractionService
.DisplayMessage("information", $"Creating {languageInfo.DisplayName} AppHost...");
156
InteractionService
.DisplayEmptyLine();
162
if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller,
InteractionService
, _features, Telemetry, _hostEnvironment, cancellationToken))
175
InteractionService
.DisplayEmptyLine();
176
InteractionService
.DisplayMessage("information", string.Format(CultureInfo.CurrentCulture, InitCommandStrings.SolutionDetected, initContext.SelectedSolutionFile.Name));
177
InteractionService
.DisplayEmptyLine();
182
InteractionService
.DisplayEmptyLine();
183
InteractionService
.DisplayMessage("information", InitCommandStrings.NoSolutionFoundCreatingSingleFileAppHost);
184
InteractionService
.DisplayEmptyLine();
194
var (getSolutionExitCode, solutionProjects) = await
InteractionService
.ShowStatusAsync("Reading solution...", async () =>
210
InteractionService
.DisplayLines(initContext.GetSolutionProjectsOutputCollector.GetLines());
211
InteractionService
.DisplayError("Failed to get projects from solution.");
217
_ = await
InteractionService
.ShowStatusAsync("Evaluating existing projects...", async () =>
227
InteractionService
.DisplayMessage("check_mark", InitCommandStrings.SolutionAlreadyInitialized);
243
InteractionService
.DisplayEmptyLine();
244
InteractionService
.DisplayMarkdown(addExecutableProjectsMessage);
245
InteractionService
.DisplayEmptyLine();
247
var selectedProjects = await
InteractionService
.PromptForSelectionsAsync(
258
InteractionService
.DisplayEmptyLine();
259
InteractionService
.DisplayMessage("information", "The following projects will be added to the AppHost:");
260
InteractionService
.DisplayEmptyLine();
264
InteractionService
.DisplayMessage("check_box_with_check", project.ProjectFile.Name);
276
InteractionService
.DisplayEmptyLine();
277
InteractionService
.DisplayMarkdown(addServiceDefaultsMessage);
278
InteractionService
.DisplayEmptyLine();
287
var selection = await
InteractionService
.PromptForSelectionAsync(
300
initContext.ProjectsToAddServiceDefaultsTo = await
InteractionService
.PromptForSelectionsAsync(
318
var nugetConfigPrompter = new NuGetConfigPrompter(
InteractionService
);
335
var templateInstallResult = await
InteractionService
.ShowStatusAsync(
357
InteractionService
.DisplayLines(initContext.InstallTemplateOutputCollector.GetLines());
358
InteractionService
.DisplayError("Failed to install Aspire templates.");
363
var createResult = await
InteractionService
.ShowStatusAsync(
384
InteractionService
.DisplayLines(initContext.NewProjectOutputCollector.GetLines());
385
InteractionService
.DisplayError($"Failed to create Aspire projects. Exit code: {createResult}");
396
InteractionService
.DisplayError("Failed to find created AppHost or ServiceDefaults projects in template output.");
418
var addAppHostResult = await
InteractionService
.ShowStatusAsync(
437
InteractionService
.DisplayLines(initContext.AddAppHostToSolutionOutputCollector.GetLines());
438
InteractionService
.DisplayError($"Failed to add AppHost project to solution. Exit code: {addAppHostResult}");
444
var addServiceDefaultsResult = await
InteractionService
.ShowStatusAsync(
463
InteractionService
.DisplayLines(initContext.AddServiceDefaultsToSolutionOutputCollector.GetLines());
464
InteractionService
.DisplayError($"Failed to add ServiceDefaults project to solution. Exit code: {addServiceDefaultsResult}");
477
var addRefResult = await
InteractionService
.ShowStatusAsync(
495
InteractionService
.DisplayLines(outputCollector.GetLines());
496
InteractionService
.DisplayError($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
511
var addRefResult = await
InteractionService
.ShowStatusAsync(
529
InteractionService
.DisplayLines(outputCollector.GetLines());
530
InteractionService
.DisplayError($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
539
InteractionService
.DisplaySuccess(InitCommandStrings.AspireInitializationComplete);
563
InteractionService
.DisplayMessage("check_mark", $"{appHostFileName} already exists in this directory.");
572
InteractionService
.DisplaySuccess($"Created {appHostFileName}");
573
InteractionService
.DisplayMessage("information", $"Run 'aspire run' to start your AppHost.");
583
InteractionService
.DisplayError("Single-file AppHost template not found.");
602
InteractionService
.DisplaySuccess(InitCommandStrings.AspireInitializationComplete);
726
var packagesFromChannels = await
InteractionService
.ShowStatusAsync("Searching for available template versions...", async () =>
776
InteractionService
.DisplayEmptyLine();
777
InteractionService
.DisplayMarkdown(templateSelectionMessage);
778
InteractionService
.DisplayEmptyLine();
Commands\McpInitCommand.cs (2)
60
InteractionService
.DisplayMarkupLine($"[yellow]⚠ {McpCommandStrings.DeprecatedCommandWarning}[/]");
61
InteractionService
.DisplayEmptyLine();
Commands\McpStartCommand.cs (1)
39
InteractionService
.DisplayMarkupLine($"[yellow]⚠ {McpCommandStrings.DeprecatedCommandWarning}[/]");
Commands\NewCommand.cs (7)
134
var templateCommand = new TemplateCommand(template, ExecuteAsync, _features, _updateNotifier, _executionContext,
InteractionService
, Telemetry);
173
InteractionService
.DisplayError($"Unknown language: '{explicitLanguage}'");
182
if (!await SdkInstallHelper.EnsureSdkInstalledAsync(_sdkInstaller,
InteractionService
, _features, Telemetry, _hostEnvironment, cancellationToken))
197
if (templateResult.OutputPath is not null && ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _))
237
InteractionService
.DisplaySuccess($"Created {language.DisplayName} project at {outputPath}");
238
InteractionService
.DisplayMessage("information", "Run 'aspire run' to start your AppHost.");
240
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _))
Commands\PipelineCommandBase.cs (28)
173
InteractionService
.DisplayMessage("bug", InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost);
176
var backchannel = await
InteractionService
.ShowStatusAsync($":hammer_and_wrench: {GetProgressMessage(parseResult)}", async () =>
221
InteractionService
.DisplayLines(outputCollector.GetLines());
243
InteractionService
.DisplayError(canceledMessage);
250
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
263
InteractionService
.DisplayError(ex.Message);
272
InteractionService
.DisplayError(errorMessage);
275
InteractionService
.DisplayLines(outputCollector.GetLines());
285
InteractionService
.DisplayError(errorMessage);
288
InteractionService
.DisplayLines(outputCollector.GetLines());
298
InteractionService
.DisplayError(errorMessage);
301
InteractionService
.DisplayLines(outputCollector.GetLines());
338
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Step {stepCounter++}: {statusText}", escapeMarkup: false);
347
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Step {activity.Data.Id}: {status} - {statusText}", escapeMarkup: false);
382
InteractionService
.DisplaySubtleMessage(formattedMessage, escapeMarkup: false);
393
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Task {activity.Data.Id} ({stepId}): {status} - {statusText}", escapeMarkup: false);
397
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] {completionMessage}", escapeMarkup: false);
403
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] Task {activity.Data.Id} ({stepId}): {statusText}", escapeMarkup: false);
415
InteractionService
.DisplaySubtleMessage($"[[DEBUG]] {OperationCompletedPrefix}: {status} - {statusText}", escapeMarkup: false);
754
InteractionService
.DisplayError(error);
760
InputType.Text => await
InteractionService
.PromptForStringAsync(
766
InputType.SecretText => await
InteractionService
.PromptForStringAsync(
775
InputType.Boolean => (await
InteractionService
.ConfirmAsync(promptText, defaultValue: ParseBooleanValue(input.Value), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
779
_ => await
InteractionService
.PromptForStringAsync(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken)
787
return await
InteractionService
.PromptForStringAsync(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken);
801
var (value, displayText) = await
InteractionService
.PromptForSelectionAsync(
809
return await
InteractionService
.PromptForStringAsync(promptText, defaultValue: input.Value?.EscapeMarkup(), required: input.Required, cancellationToken: cancellationToken);
829
return await
InteractionService
.PromptForStringAsync(
Commands\ResourceCommandBase.cs (2)
92
InteractionService
.DisplayError(result.ErrorMessage);
98
InteractionService
,
Commands\RunCommand.cs (21)
118
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _))
138
var isExtensionHost = ExtensionHelper.IsExtensionHost(
InteractionService
, out _, out _);
152
InteractionService
.DisplayError(RunCommandStrings.FormatRequiresDetach);
161
InteractionService
.DisplayError(RunCommandStrings.NoBuildNotSupportedWithWatchMode);
173
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out var extensionInteractionService, out _)
199
InteractionService
.DisplayError("Unrecognized app host type.");
214
InteractionService
.DisplayMessage("warning", RunCommandStrings.IsolatedModeRunningInstanceWarning);
249
InteractionService
.DisplayLines(outputCollector.GetLines());
251
InteractionService
.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ProjectCouldNotBeBuilt, ExecutionContext.LogFilePath));
256
var backchannel = await
InteractionService
.ShowStatusAsync(
264
var dashboardUrls = await
InteractionService
.ShowStatusAsync(
270
InteractionService
.DisplayError(RunCommandStrings.DashboardFailedToStart);
335
if (ExtensionHelper.IsExtensionHost(
InteractionService
, out var extInteractionService, out _))
346
InteractionService
.DisplayCancellationMessage();
351
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
356
return
InteractionService
.DisplayIncompatibleVersionError(ex, ex.AspireHostingVersion ?? ex.RequiredCapability);
362
InteractionService
.DisplayError(errorMessage);
369
InteractionService
.DisplayError(errorMessage);
371
InteractionService
.DisplayMessage("page_facing_up", string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath.EscapeMarkup()));
378
InteractionService
.DisplayError(errorMessage);
380
InteractionService
.DisplayMessage("page_facing_up", string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath.EscapeMarkup()));
Commands\Sdk\SdkDumpCommand.cs (8)
82
InteractionService
.DisplayError($"Integration project not found: {integrationProject.FullName}");
88
InteractionService
.DisplayError($"Expected a .csproj file, got: {integrationProject.Extension}");
95
InteractionService
.DisplayError("Cannot specify both --json and --ci. Choose one format.");
107
return await
InteractionService
.ShowStatusAsync(
130
InteractionService
.DisplayError("SDK dump is only available with .NET SDK installed.");
153
InteractionService
.DisplayError("Failed to build capability scanner.");
156
InteractionService
.DisplayMessage("wrench", line.EscapeMarkup());
201
InteractionService
.DisplaySuccess($"Capabilities written to {outputFile.FullName}");
Commands\Sdk\SdkGenerateCommand.cs (8)
72
InteractionService
.DisplayError($"Integration project not found: {integrationProject.FullName}");
78
InteractionService
.DisplayError($"Expected a .csproj file, got: {integrationProject.Extension}");
86
InteractionService
.DisplayError($"Unsupported language: {language}");
96
return await
InteractionService
.ShowStatusAsync(
129
InteractionService
.DisplayError("SDK generation is only available with .NET SDK installed.");
155
InteractionService
.DisplayError("Failed to build SDK generation server.");
158
InteractionService
.DisplayMessage("wrench", line.EscapeMarkup());
197
InteractionService
.DisplaySuccess($"Generated {generatedFiles.Count} files in {outputDir.FullName}");
Commands\SetupCommand.cs (7)
55
InteractionService
.DisplayError("Could not determine the CLI executable path.");
67
InteractionService
.DisplayError("Could not determine the installation path.");
73
var exitCode = await
InteractionService
.ShowStatusAsync(
84
InteractionService
.DisplayMessage("information", "This CLI binary does not contain an embedded bundle. No extraction needed.");
88
InteractionService
.DisplayMessage("white_check_mark", "Bundle is already extracted and up to date. Use --force to re-extract.");
92
InteractionService
.DisplayMessage("white_check_mark", $"Bundle extracted to {installPath}");
96
InteractionService
.DisplayError($"Bundle was extracted to {installPath} but layout validation failed.");
Commands\UpdateCommand.cs (22)
116
InteractionService
.DisplayMessage("information", UpdateCommandStrings.DotNetToolSelfUpdateMessage);
117
InteractionService
.DisplayPlainText(" dotnet tool update -g Aspire.Cli");
123
InteractionService
.DisplayError("CLI self-update is not available in this environment.");
133
InteractionService
.DisplayCancellationMessage();
177
channel = await
InteractionService
.PromptForSelectionAsync(
205
var shouldUpdateCli = await
InteractionService
.ConfirmAsync(
221
InteractionService
.DisplayError(message);
228
InteractionService
.DisplayError(message);
239
var shouldUpdateCli = await
InteractionService
.ConfirmAsync(
251
return HandleProjectLocatorException(ex,
InteractionService
, Telemetry);
255
InteractionService
.DisplayCancellationMessage();
275
channel = await
InteractionService
.PromptForSelectionAsync(
288
InteractionService
.DisplayError("Unable to determine the current executable path.");
292
InteractionService
.DisplayMessage("package", $"Current CLI location: {currentExePath}");
293
InteractionService
.DisplayMessage("up_arrow", $"Updating to channel: {channel}");
319
InteractionService
.DisplayCancellationMessage();
326
InteractionService
.DisplayError(errorMessage);
353
InteractionService
.DisplayMessage("package", "Extracting new CLI...");
368
InteractionService
.DisplayMessage("floppy_disk", "Backing up current CLI...");
381
InteractionService
.DisplayMessage("wrench", $"Installing new CLI to {installDir}...");
408
InteractionService
.DisplayMessage("information", $"Note: {installDir} is not in your PATH. Add it to use the updated CLI globally.");
499
InteractionService
.DisplaySuccess($"Updated to version: {version}");