-
Notifications
You must be signed in to change notification settings - Fork 0
/
CliArgs.json
135 lines (135 loc) · 3.16 KB
/
CliArgs.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"$id": "https://raw.githubusercontent.com/ng2react/cli/main/schemas/CliArgs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ignorethistype",
"description": "@deprecated",
"type": "object",
"additionalProperties": false,
"properties": {
"test": {
"$ref": "#/$defs/test"
},
"convert": {
"$ref": "#/$defs/convert"
},
"search": {
"$ref": "#/$defs/search"
},
"check": {
"$ref": "#/$defs/check"
}
},
"$defs": {
"convert": {
"title": "Ng2rConvertOptions",
"extends": {
"$ref": "#/$defs/gpt"
},
"type": "object",
"additionalProperties": false,
"required": [
"componentName",
"sourceRoot"
],
"properties": {
"componentName": {
"type": "string"
},
"sourceRoot": {
"type": "string",
"description": "The root directory of the project. If not specified, the directory below that of the\nnearest package.json file will be used."
},
"customPrompt": {
"type": "string",
"description": "Custom rules (Markdown) that will be used instead of the default rules regarding pattern conversion."
}
}
},
"test": {
"title": "Ng2rTestGenerationOptions",
"type": "object",
"extends": {
"$ref": "#/$defs/gpt"
},
"additionalProperties": false
},
"model": {
"type": "string",
"enum": [
"gpt-4",
"gpt-3.5-turbo"
]
},
"search": {
"title": "Ng2rSearchOptions",
"type": "object",
"additionalProperties": false,
"required": [
"file"
],
"properties": {
"file": {
"description": "Absolute path of file to search",
"type": "string"
}
}
},
"gpt": {
"title": "Ng2rGptOptions",
"type": "object",
"additionalProperties": false,
"required": [
"file",
"apiKey"
],
"properties": {
"file": {
"description": "Absolute path to the file to be converted",
"type": "string"
},
"apiKey": {
"type": "string"
},
"model": {
"$ref": "#/$defs/model",
"default": "gpt-4"
},
"organization": {
"type": "string"
},
"temperature": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 0.2,
"description": "The temperature to use when generating completions. Higher values result in more random completions.\nMust be between 0 and 2."
},
"targetLanguage": {
"type": "string",
"enum": [
"typescript",
"javascript"
]
}
}
},
"check": {
"title": "Ng2rCheckOptions",
"type": "object",
"additionalProperties": false,
"required": [
"apiKey",
"model"
],
"properties": {
"apiKey": {
"type": "string"
},
"model": {
"$ref": "#/$defs/model",
"default": "gpt-3-turbo"
}
}
}
}
}