audit remarks work
This commit is contained in:
@@ -52,6 +52,7 @@ internal static class CommandFactory
|
||||
root.Add(BuildAuthCommand(services, options, verboseOption, cancellationToken));
|
||||
root.Add(BuildTenantsCommand(services, options, verboseOption, cancellationToken));
|
||||
root.Add(BuildPolicyCommand(services, options, verboseOption, cancellationToken));
|
||||
root.Add(ToolsCommandGroup.BuildToolsCommand(loggerFactory, cancellationToken));
|
||||
root.Add(BuildTaskRunnerCommand(services, verboseOption, cancellationToken));
|
||||
root.Add(BuildFindingsCommand(services, verboseOption, cancellationToken));
|
||||
root.Add(BuildAdviseCommand(services, options, verboseOption, cancellationToken));
|
||||
|
||||
@@ -10,13 +10,12 @@ using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using StellaOps.Cli.Replay;
|
||||
using StellaOps.Canonicalization.Json;
|
||||
using StellaOps.Canonicalization.Verification;
|
||||
using StellaOps.Policy.Replay;
|
||||
using StellaOps.Replay.Core;
|
||||
using StellaOps.Replay.Core.Export;
|
||||
using StellaOps.Testing.Manifests.Models;
|
||||
using StellaOps.Testing.Manifests.Serialization;
|
||||
|
||||
namespace StellaOps.Cli.Commands;
|
||||
|
||||
|
||||
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