using System.Diagnostics.CodeAnalysis; using Quorate.HostExec; internal static class Program { [SuppressMessage("Design", "CA1031", Justification = "The executable boundary maps failures to the proxy exit code.")] private static async Task Main(string[] args) { if (args.Length == 0) { await Console.Error.WriteLineAsync("proxy path is missing").ConfigureAwait(false); return 125; } try { return await Proxy.Run(args[0], args[1..]).ConfigureAwait(false); } catch (Exception error) { await Console.Error.WriteLineAsync($"{error.GetType().Name}: {error.Message}").ConfigureAwait(false); return 125; } } }