Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            Parser.Default.ParseArguments <Options>(args).WithParsed(ParseConsoleOptions)
            .WithNotParsed(error => _isParsingErrors = true);

            if (_isParsingErrors)
            {
                return;
            }

            Directory.CreateDirectory($"{Benchmarks.Data}/{Benchmarks.In}");
            // Copy benchmark.tif to data/in/i.tif
            File.Copy(_inputPath, $"{Benchmarks.Data}/{Benchmarks.In}/{Benchmarks.Itif}", true);

            // Pull the latest images
            Docker.Pull(Benchmarks.GdalName);
            Docker.Pull(Benchmarks.MaptilerName);

            // Run the benchmarks
            BenchmarkRunner.Run <Benchmarks>();
        }