Skip to content

Commit e12a953

Browse files
committed
Adjust feature command
1 parent 37a7183 commit e12a953

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/tooling/docs-builder/Cli/LinkHealthCommands.cs renamed to src/tooling/docs-builder/Cli/ValidationCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
namespace Documentation.Builder.Cli;
1717

18-
internal sealed class LinkHealthCommands(ILoggerFactory logger, ICoreService githubActionsService)
18+
internal sealed class ValidationCommands(ILoggerFactory logger, ICoreService githubActionsService)
1919
{
2020
/// <summary>
2121
/// Validates redirect updates in the current branch using the redirects file against changes reported by git.
2222
/// </summary>
2323
/// <param name="ctx"></param>
2424
[SuppressMessage("Usage", "CA2254:Template should be a static expression")]
25-
[Command("validate-redirects")]
25+
[Command("validate")]
2626
[ConsoleAppFilter<StopwatchFilter>]
2727
[ConsoleAppFilter<CatchExceptionFilter>]
2828
public async Task<int> ValidateRedirects(Cancel ctx = default)

src/tooling/docs-builder/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Documentation.Builder.Cli;
77
using Elastic.Documentation.Diagnostics;
88
using Elastic.Documentation.Tooling;
9-
using Elastic.Markdown.Diagnostics;
109
using Microsoft.Extensions.DependencyInjection;
1110

1211
await using var serviceProvider = DocumentationTooling.CreateServiceProvider(ref args, services => services
@@ -18,6 +17,6 @@
1817
var app = ConsoleApp.Create();
1918
app.Add<Commands>();
2019
app.Add<InboundLinkCommands>("inbound-links");
21-
app.Add<LinkHealthCommands>("health");
20+
app.Add<ValidationCommands>("diff");
2221

2322
await app.RunAsync(args).ConfigureAwait(false);

0 commit comments

Comments
 (0)