22 lines
717 B
C#
22 lines
717 B
C#
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;
|
|
}
|
|
}
|
|
}
|