audit remarks work
This commit is contained in:
21
src/Tools/NotifySmokeCheck/NotifySmokeCheckApp.cs
Normal file
21
src/Tools/NotifySmokeCheck/NotifySmokeCheckApp.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace StellaOps.Tools.NotifySmokeCheck;
|
||||
|
||||
public static class NotifySmokeCheckApp
|
||||
{
|
||||
public static async Task<int> RunAsync(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
var options = NotifySmokeOptions.FromEnvironment(Environment.GetEnvironmentVariable);
|
||||
var runner = new NotifySmokeCheckRunner(options, Console.WriteLine, Console.Error.WriteLine);
|
||||
await runner.RunAsync(CancellationToken.None).ConfigureAwait(false);
|
||||
Console.WriteLine("[OK] Notify smoke validation completed successfully.");
|
||||
return 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.Error.WriteLine($"[FAIL] {ex.Message}");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user