public static void Main(string[] args) { if (args.Length == 0) { throw new System.Exception("No Parameter sent"); } if (args[0] == "crud") { CrudGeneratorProgram.MainApp(args); } else if (args[0] == "migration") { MigrationProgram.MainApp(); } else if (args[0] == "react") { ReactModelGeneratorProgram.MainApp(); } else if (args[0] == "tapi") { ApiModelGeneratorProgram.MainApp(isTest: true); } else if (args[0] == "api") { ApiModelGeneratorProgram.MainApp(isTest: false); ApiModelGeneratorProgram.MainApp(isTest: true); } else { throw new System.Exception("No Parameter sent"); } }
// ReSharper disable once UnusedMember.Local static void Main(string[] args) { var configuration = ReadConfiguration(); if (ParametersReader.IsPrintHelp(args)) { Console.WriteLine(ParametersReader.PrintHelp()); return; } var options = ParametersReader.ReadOptions(configuration, args); var migrator = new MigrationProgram(); migrator.Run(options); }