static void Main(string[] args) { if (args.Length != 3) { Usage(); return; } if (args[0] == "-p") { GenProtocol(args[1], args[2]); } else if (args[0] == "-s") { GenSchema(args[1], args[2]); } else if (args[0] == "-f") { var str = args[1]; var chrArray = new[] { ';' }; var list = str.Split(chrArray, StringSplitOptions.RemoveEmptyEntries).ToList(); GenSchema(list, args[2]); Console.WriteLine("Complete."); } else if (args[0] == "-d") { var codegen = new AvroCodeGenerator(); codegen.Generate(args[1], args[2]); } else { Usage(); } }
public void Should_return_all_sorted_dependencies() { var gen = new AvroCodeGenerator(); gen.Generate(@"D:\ETP\ETP-CTP-Release\CodeGen\Energistics", @"D:\ETP\ETP-CTP-Release\CodeGen\src"); }