Skip to content

Commit 87c7d5c

Browse files
committed
Add DashboardRunCommand as subcommand of DashboardCommand
Refactor the dashboard command so that 'aspire dashboard' is now a parent command that shows help, and 'aspire dashboard run' contains all the original dashboard-starting logic. - Create DashboardRunCommand with all existing dashboard execution logic - Convert DashboardCommand to a parent command that shows help - Add RunDescription resource string and update xlf files - Register DashboardRunCommand in DI (Program.cs and test helper) - Rename tests to DashboardRunCommandTests
1 parent bdcac12 commit 87c7d5c

20 files changed

Lines changed: 586 additions & 468 deletions

src/Aspire.Cli/Commands/DashboardCommand.cs

Lines changed: 9 additions & 405 deletions
Large diffs are not rendered by default.

src/Aspire.Cli/Commands/DashboardRunCommand.cs

Lines changed: 438 additions & 0 deletions
Large diffs are not rendered by default.

src/Aspire.Cli/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ internal static async Task<IHost> BuildApplicationAsync(string[] args, CliStartu
456456
builder.Services.AddTransient<CertificatesTrustCommand>();
457457
builder.Services.AddTransient<DoctorCommand>();
458458
builder.Services.AddTransient<DashboardCommand>();
459+
builder.Services.AddTransient<DashboardRunCommand>();
459460
builder.Services.AddTransient<UpdateCommand>();
460461
builder.Services.AddTransient<DeployCommand>();
461462
builder.Services.AddTransient<DoCommand>();

src/Aspire.Cli/Resources/DashboardCommandStrings.Designer.cs

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Aspire.Cli/Resources/DashboardCommandStrings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="Description" xml:space="preserve">
121+
<value>Manage the Aspire dashboard</value>
122+
</data>
123+
<data name="RunDescription" xml:space="preserve">
121124
<value>Start the Aspire dashboard</value>
122125
</data>
123126
<data name="BundleNotAvailable" xml:space="preserve">

src/Aspire.Cli/Resources/xlf/DashboardCommandStrings.cs.xlf

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Aspire.Cli/Resources/xlf/DashboardCommandStrings.de.xlf

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Aspire.Cli/Resources/xlf/DashboardCommandStrings.es.xlf

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Aspire.Cli/Resources/xlf/DashboardCommandStrings.fr.xlf

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Aspire.Cli/Resources/xlf/DashboardCommandStrings.it.xlf

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)