예제 #1
0
 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");
     }
 }
예제 #2
0
        // 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);
        }