internal static void Main(string[] args) { Parser.Default.ParseArguments <ScaffoldTestOptions, IdentifyMissingTestsOptions, DownloadDriversOptions, ApiCheckerOptions>(args) .WithParsed <ScaffoldTestOptions>(o => ScaffoldTest.Run(o)) .WithParsed <IdentifyMissingTestsOptions>(o => IdentifyMissingTests.Run(o)) #pragma warning disable VSTHRD002 // Avoid problematic synchronous waits .WithParsed <DownloadDriversOptions>(o => DriverDownloader.RunAsync(o).GetAwaiter().GetResult()) #pragma warning restore VSTHRD002 // Avoid problematic synchronous waits .WithParsed <ApiCheckerOptions>(o => ApiChecker.Run(o)); }
internal static Task RunAsync(ApiCheckerOptions o) { ApiChecker apiChecker = new ApiChecker { BasePath = o.BasePath, AssemblyPath = Path.Combine(o.BasePath, "src", "Playwright", "bin", "Debug", "net5.0", "Microsoft.Playwright.dll"), }; return(apiChecker.ExecuteAsync()); }