-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathkotlinc.ts
166 lines (165 loc) · 5.09 KB
/
kotlinc.ts
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
const completionSpec: Fig.Spec = {
name: "kotlinc",
description: "Kotlin compiler for JVM",
subcommands: [
{
name: "-version",
description: "Display the compiler version",
},
{
name: "-nowarn",
description:
"Suppress the compiler from displaying warnings during compilation",
},
{
name: "-Werror",
description: "Turn any warnings into a compilation error",
},
{
name: "-verbose",
description:
"Enable verbose logging output which includes details of the compilation process",
},
{
name: "-script",
description:
"Evaluate a Kotlin script file. When called with this option, the compiler executes the first Kotlin script (*.kts) file among the given arguments",
args: {
name: "script-file",
template: "filepaths",
},
},
{
name: ["-help", "-h"],
description:
"Display usage information and exit. Only standard options are shown. To show advanced options, use -X",
},
{
name: "-X",
description:
"Display information about the advanced options and exit. These options are currently unstable: their names and behavior may be changed without notice",
},
{
name: "-kotlin-home",
description:
"Specify a custom path to the Kotlin compiler used for the discovery of runtime libraries",
args: {
name: "path",
template: "filepaths",
},
},
{
name: "-P",
description:
"Pass an option to a Kotlin compiler plugin. Available plugins and their options are listed in the Tools > Compiler plugins section of the documentation",
args: {
name: "plugin:pluginId:optionName=value",
},
},
{
name: "-language-version",
description:
"Provide source compatibility with the specified version of Kotlin",
args: {
name: "version",
},
},
{
name: "-api-version",
description:
"Allow using declarations only from the specified version of Kotlin bundled libraries",
args: {
name: "version",
},
},
{
name: "-progressive",
description:
"Enable the progressive mode for the compiler. In the progressive mode, deprecations and bug fixes for unstable code take effect immediately, instead of going through a graceful migration cycle. Code written in the progressive mode is backward compatible; however, code written in a non-progressive mode may cause compilation errors in the progressive mode",
},
{
name: "-opt-in",
description:
"Enable usages of API that requires opt-in with a requirement annotation specified by the given fully qualified name",
args: {
name: "annotation",
},
},
{
name: ["-classpath", "-cp"],
description:
"Search for class files in the specified paths. Separate elements of the classpath with system path separators (; on Windows, : on macOS/Linux). The classpath can contain file and directory paths, ZIP, or JAR files",
args: {
name: "path",
template: "filepaths",
},
},
{
name: "-d",
description:
"Place the generated class files into the specified location. The location can be a directory, a ZIP, or a JAR file",
args: {
name: "path",
template: "filepaths",
},
},
{
name: "-include-runtime",
description:
"Include the Kotlin runtime into the resulting JAR file. Makes the resulting archive runnable on any Java-enabled environment",
},
{
name: "-jdk-home",
description:
"Use a custom JDK home directory to include into the classpath if it differs from the default JAVA_HOME",
args: {
name: "path",
template: "folders",
},
},
{
name: "-jvm-target",
description:
"Specify the target version of the generated JVM bytecode. Possible values are 1.8, 9, 10, ..., 21. The default value is 1.8",
args: {
name: "version",
},
},
{
name: "-java-parameters",
description:
"Generate metadata for Java 1.8 reflection on method parameters",
},
{
name: "-module-name",
description: "Set a custom name for the generated .kotlin_module file",
args: {
name: "name",
},
},
{
name: "-no-jdk",
description:
"Don't automatically include the Java runtime into the classpath",
},
{
name: "-no-reflect",
description:
"Don't automatically include the Kotlin reflection (kotlin-reflect.jar) into the classpath",
},
{
name: "-no-stdlib",
description:
"Don't automatically include the Kotlin/JVM stdlib (kotlin-stdlib.jar) and Kotlin reflection (kotlin-reflect.jar) into the classpath",
},
{
name: "-script-templates",
description:
"Script definition template classes. Use fully qualified class names and separate them with commas (,)",
args: {
name: "classnames[,]",
},
},
],
};
export default completionSpec;