audit remarks work
This commit is contained in:
25
src/Cli/StellaOps.Cli/Commands/ToolsCommandGroup.cs
Normal file
25
src/Cli/StellaOps.Cli/Commands/ToolsCommandGroup.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.CommandLine;
|
||||
using System.Threading;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using StellaOps.Policy;
|
||||
using StellaOps.Policy.Tools;
|
||||
|
||||
namespace StellaOps.Cli.Commands;
|
||||
|
||||
internal static class ToolsCommandGroup
|
||||
{
|
||||
internal static Command BuildToolsCommand(ILoggerFactory loggerFactory, CancellationToken cancellationToken)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(loggerFactory);
|
||||
|
||||
var tools = new Command("tools", "Local policy tooling and maintenance commands.");
|
||||
var validationRunner = new PolicyValidationRunner(new PolicyValidationCli());
|
||||
|
||||
tools.Add(PolicyDslValidatorCommand.BuildCommand(validationRunner, cancellationToken));
|
||||
tools.Add(PolicySchemaExporterCommand.BuildCommand(new PolicySchemaExporterRunner(), cancellationToken));
|
||||
tools.Add(PolicySimulationSmokeCommand.BuildCommand(new PolicySimulationSmokeRunner(loggerFactory), cancellationToken));
|
||||
|
||||
return tools;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user