audit remarks work
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.CommandLine;
|
||||
|
||||
namespace StellaOps.Policy.Tools;
|
||||
|
||||
public static class PolicySimulationSmokeApp
|
||||
{
|
||||
public static async Task<int> RunAsync(string[] args)
|
||||
{
|
||||
var runner = new PolicySimulationSmokeRunner();
|
||||
var root = PolicySimulationSmokeCommand.Build(runner);
|
||||
var parseResult = root.Parse(args, new ParserConfiguration());
|
||||
var invocationConfiguration = new InvocationConfiguration();
|
||||
|
||||
if (parseResult.Errors.Count > 0)
|
||||
{
|
||||
await parseResult.InvokeAsync(invocationConfiguration, CancellationToken.None);
|
||||
return 64; // EX_USAGE
|
||||
}
|
||||
|
||||
return await parseResult.InvokeAsync(invocationConfiguration, CancellationToken.None);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user