Beispiel #1
0
        public static int Main(string[] args)
        {
            var testerService = new TesterService(new ConsoleLogger());

            return
                (Parser.Default.ParseArguments <PackageOptions, DeployOptions>(args)
                 .MapResult(
                     (PackageOptions options) => Run(() => testerService.Package(options)),
                     (DeployOptions options) => Run(() => testerService.Deploy(options)),
                     errors => 1));
        }