-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathant.ts
178 lines (177 loc) · 4.15 KB
/
ant.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
167
168
169
170
171
172
173
174
175
176
177
178
const tasksGenerator: Fig.Generator = {
script: ["bash", "-c", "command ant -p | grep -i '^\\s' | tr -d ' '"],
postProcess: (out) =>
out.split("\n").map((task) => ({
name: task,
description: `Execute ${task} task`,
type: "arg",
})),
cache: {
cacheByDirectory: true,
strategy: "stale-while-revalidate",
},
};
const completionSpec: Fig.Spec = {
name: "ant",
description: "A software tool for automating software build processes",
parserDirectives: {
flagsArePosixNoncompliant: true,
},
options: [
{
name: ["--help", "-help", "-h"],
description: "Show help for ant",
},
{
name: "--noconfig",
description:
"Suppress sourcing of /etc/ant.conf, $HOME/.ant/ant.conf, and $HOME/.antrc configuration files",
},
{
name: "--usejikes",
description:
"Enable use of jikes by default, unless set explicitly in configuration files",
},
{
name: "--execdebug",
description: "Print ant exec line generated by this launch script",
},
{
name: ["-projecthelp", "-p"],
description: "Print project help information and exit",
},
{
name: "-version",
description: "Print the version information and exit",
},
{
name: "-diagnostics",
description:
"Print information that might be helpful to diagnose or report problems and exit",
},
{
name: ["-quiet", "-q"],
description: "Be extra quiet",
},
{
name: ["-silent", "-S"],
description: "Print nothing but task outputs and build failures",
},
{
name: ["-verbose", "-v"],
description: "Be extra verbose",
},
{
name: ["-debug", "-d"],
description: "Print debugging information",
},
{
name: ["-emacs", "-e"],
description: "Produce logging information without adornments",
},
{
name: "-lib",
description: "Specifies a path to search for jars and classes",
args: {
name: "path",
template: "folders",
},
},
{
name: ["-logfile", "-l"],
description: "Use given file for log",
args: {
name: "file",
template: "filepaths",
},
},
{
name: "-logger",
description: "The class which is to perform logging",
args: {
name: "classname",
},
},
{
name: "-listener",
description: "Add an instance of class as a project listener",
args: {
name: "classname",
},
},
{
name: "-noinput",
description: "Do not allow interactive input",
},
{
name: ["-buildfile", "-file", "-f"],
description: "Use given buildfile",
args: {
name: "file",
template: "filepaths",
},
},
{
name: ["-keep-going", "-k"],
description: "Execute all targets that do not depend on failed target(s)",
},
{
name: "-propertyfile",
description:
"Load all properties from file with -D properties taking precedence",
args: {
name: "name",
template: "filepaths",
},
},
{
name: "-inputhandler",
description: "The class which will handle input requests",
args: {
name: "class",
},
},
{
name: ["-find", "-s"],
description:
"Search for buildfile towards the root of the filesystem and use it",
args: {
name: "file",
},
},
{
name: "-nice",
description: "A niceness value for the main thread",
args: {
name: "number",
},
},
{
name: "-nouserlib",
description:
"Run ant without using the jar files from ${user.home}/.ant/lib",
},
{
name: "-noclasspath",
description: "Run ant without using CLASSPATH",
},
{
name: "-autoproxy",
description: "Java1.5+: use the OS proxy settings",
},
{
name: "-main",
description: "Override Ant's normal entry point",
args: {
name: "class",
},
},
],
args: {
name: "target",
isVariadic: true,
isOptional: true,
generators: tasksGenerator,
},
};
export default completionSpec;