Example #1
0
 static async Task Main(string[] args)
 {
     await Parser.Default
     .ParseArguments <
         UnpackCommandLineArguments,
         PackCommandLineArguments,
         LoadMapCommandLineArguments,
         DumpScriptsCommandLineArguments,
         PatchScriptCommandLineArguments,
         PatchTagCommandLineArguments
         >(args)
     .MapResult(
         async(UnpackCommandLineArguments a) => await UnpackTask.Run(a),
         async(PackCommandLineArguments a) => await PackTask.Run(a),
         async(LoadMapCommandLineArguments a) => await LoadMapTask.Run(a),
         async(DumpScriptsCommandLineArguments a) => await DumpScriptsTask.Run(a),
         async(PatchScriptCommandLineArguments a) => await PatchScriptTask.Run(a),
         async(PatchTagCommandLineArguments a) => await PatchTagTask.Run(a),
         errs => WriteErrors(errs));
 }
Example #2
0
        public static async Task Run(UnpackCommandLineArguments args)
        {
            var t = new UnpackTask(args);

            t.Run();
        }