-
Notifications
You must be signed in to change notification settings - Fork 0
/
args.go
62 lines (49 loc) · 2.4 KB
/
args.go
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package generator
const ModuleName = "module-name"
const ModuleNameTitle = "Module name"
const ModuleNameDescription = "module name"
const SpecFile = "spec-file"
const SpecFileTitle = "Spec file path"
const SpecFileDescription = "path to specification file"
const GeneratePath = "generate-path"
const GeneratePathTitle = "Generate path"
const GeneratePathDescription = "path to generate source code into"
const SwaggerPath = "swagger-path"
const SwaggerPathTitle = "Swagger path"
const SwaggerPathDescription = "path of generated OpenAPI (Swagger) specification file"
const ServicesPath = "services-path"
const ServicesPathTitle = "Services path"
const ServicesPathDescription = "path to scaffold services code"
const PackageName = "package-name"
const PackageNameTitle = "Package name"
const PackageNameDescription = "package name"
const Jsonlib = "jsonlib"
const JsonlibTitle = "JSON library"
const JsonlibDescription = "json serialization/deserialization library"
const Jsonmode = "jsonmode"
const JsonmodeTitle = "JSON mode"
const JsonmodeDescription = "json serialization/deserialization mode"
const Validation = "validation"
const ValidationTitle = "Type validation library"
const ValidationDescription = "type validation library"
const Client = "client"
const ClientTitle = "Client library"
const ClientDescription = "client HTTP library"
const Server = "server"
const ServerTitle = "Server library"
const ServerDescription = "server HTTP library/framework"
const OutFile = "out-file"
const OutFileTitle = "Output file path"
const OutFileDescription = "path to output file"
var ArgSpecFile = Arg{SpecFile, SpecFileTitle, SpecFileDescription}
var ArgOutFile = Arg{OutFile, OutFileTitle, OutFileDescription}
var ArgModuleName = Arg{ModuleName, ModuleNameTitle, ModuleNameDescription}
var ArgGeneratePath = Arg{GeneratePath, GeneratePathTitle, GeneratePathDescription}
var ArgSwaggerPath = Arg{SwaggerPath, SwaggerPathTitle, SwaggerPathDescription}
var ArgServicesPath = Arg{ServicesPath, ServicesPathTitle, ServicesPathDescription}
var ArgPackageName = Arg{PackageName, PackageNameTitle, PackageNameDescription}
var ArgJsonlib = Arg{Jsonlib, JsonlibTitle, JsonlibDescription}
var ArgJsonmode = Arg{Jsonmode, JsonmodeTitle, JsonmodeDescription}
var ArgValidation = Arg{Validation, ValidationTitle, ValidationDescription}
var ArgClient = Arg{Client, ClientTitle, ClientDescription}
var ArgServer = Arg{Server, ServerTitle, ServerDescription}