-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
44 lines (41 loc) · 1.23 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
Copyright (c) 2016 Foundation.IO (https://github.com/foundationio). All rights reserved.
This work is licensed under the terms of the BSD license.
For a copy, see <https://opensource.org/licenses/BSD-3-Clause>.
**/
namespace CodeGenerator
{
public static class Program
{
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");
}
}
}
}