Skip to content
Merged
2 changes: 2 additions & 0 deletions src/Aspire.Cli/Commands/RunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ protected override async Task<int> ExecuteAsync(ParseResult parseResult, Cancell
}
topGrid.AddRow(Text.Empty, Text.Empty);
topGrid.AddRow(new Align(new Markup($"[bold green]{logsLocalizedString}[/]:"), HorizontalAlignment.Right), new Text(logFile.FullName));
topGrid.AddRow(new Text(string.Empty), new Text(string.Empty));
Copy link

Copilot AI Jul 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Use the existing Text.Empty constant instead of new Text(string.Empty) for an empty cell to reduce allocations and improve readability.

Suggested change
topGrid.AddRow(new Text(string.Empty), new Text(string.Empty));
topGrid.AddRow(Text.Empty, Text.Empty);

Copilot uses AI. Check for mistakes.
topGrid.AddRow(new Text(string.Empty), new Markup(RunCommandStrings.PressCtrlCToStopAppHost));
Copy link

Copilot AI Jul 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guidance message is added after the logs row—per the PR description it should appear before the logs. Move these two AddRow calls so the message displays between the dashboard links and the logs.

Suggested change
topGrid.AddRow(new Align(new Markup($"[bold green]{logsLocalizedString}[/]:"), HorizontalAlignment.Right), new Text(logFile.FullName));
topGrid.AddRow(new Text(string.Empty), new Text(string.Empty));
topGrid.AddRow(new Text(string.Empty), new Markup(RunCommandStrings.PressCtrlCToStopAppHost));
topGrid.AddRow(new Text(string.Empty), new Markup(RunCommandStrings.PressCtrlCToStopAppHost));
topGrid.AddRow(new Align(new Markup($"[bold green]{logsLocalizedString}[/]:"), HorizontalAlignment.Right), new Text(logFile.FullName));
topGrid.AddRow(new Text(string.Empty), new Text(string.Empty));

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Jul 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Wrap the guidance message’s Markup in an Align with HorizontalAlignment.Right (like the logs row) to keep column alignment consistent.

Suggested change
topGrid.AddRow(new Text(string.Empty), new Markup(RunCommandStrings.PressCtrlCToStopAppHost));
topGrid.AddRow(new Align(new Text(string.Empty), HorizontalAlignment.Right), new Markup(RunCommandStrings.PressCtrlCToStopAppHost));

Copilot uses AI. Check for mistakes.

_ansiConsole.Write(topPadder);

Expand Down
4 changes: 2 additions & 2 deletions src/Aspire.Cli/Resources/RunCommandStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
<value>Endpoints</value>
</data>
<data name="PressCtrlCToStopAppHost" xml:space="preserve">
<value>Press [bold]Ctrl+C[/] to stop the app host and exit.</value>
<comment>[bold] should not be localized</comment>
<value>Press [bold white on red]CTRL+C[/] to stop the app host and exit.</value>
<comment>[bold white on red] should not be localized</comment>
</data>
<data name="ProjectCouldNotBeRun" xml:space="preserve">
<value>The project could not be run. For more information run with --debug switch.</value>
Expand Down
6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.zh-Hans.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Aspire.Cli/Resources/xlf/RunCommandStrings.zh-Hant.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.