Debian Codegraph @

integrations/commander/test/fixtures/babel-cli/expected.ts

raw symbols SCIP
1 // Autogenerated by @fig/complete-commander
2
3 const completionSpec: Fig.Spec = {
4 name: "command",
5 subcommands: [
6 {
7 name: "help",
8 description: "display help for command",
9 priority: 49,
10 args: { name: "command", isOptional: true, template: "help" },
11 },
12 ],
13 options: [
14 {
15 name: ["-f", "--filename"],
16 description:
17 "The filename to use when reading from stdin. This will be used in source-maps, errors etc.",
18 args: { name: "filename", isOptional: true },
19 },
20 {
21 name: ["--presets"],
22 description: "A comma-separated list of preset names.",
23 args: { name: "list", isOptional: true },
24 },
25 {
26 name: ["--plugins"],
27 description: "A comma-separated list of plugin names.",
28 args: { name: "list", isOptional: true },
29 },
30 {
31 name: ["--config-file"],
32 description: "Path to a .babelrc file to use.",
33 args: { name: "path", isOptional: true },
34 },
35 {
36 name: ["--env-name"],
37 description:
38 "The name of the 'env' to use when loading configs and plugins. Defaults to the value of BABEL_ENV, or else NODE_ENV, or else 'development'.",
39 args: { name: "name", isOptional: true },
40 },
41 {
42 name: ["--root-mode"],
43 description:
44 "The project-root resolution mode. One of 'root' (the default), 'upward', or 'upward-optional'.",
45 args: { name: "mode", isOptional: true },
46 },
47 {
48 name: ["--source-type"],
49 args: { name: "script|module", isOptional: true },
50 },
51 {
52 name: ["--no-babelrc"],
53 description: "Whether or not to look up .babelrc and .babelignore files.",
54 },
55 {
56 name: ["--ignore"],
57 description: "List of glob paths to **not** compile.",
58 args: { name: "list", isOptional: true },
59 },
60 {
61 name: ["--only"],
62 description: "List of glob paths to **only** compile.",
63 args: { name: "list", isOptional: true },
64 },
65 {
66 name: ["--no-highlight-code"],
67 description:
68 "Enable or disable ANSI syntax highlighting of code frames. (on by default)",
69 },
70 {
71 name: ["--no-comments"],
72 description: "Write comments to generated output. (true by default)",
73 },
74 {
75 name: ["--retain-lines"],
76 description: "Retain line numbers. This will result in really ugly code.",
77 },
78 {
79 name: ["--compact"],
80 description:
81 "Do not include superfluous whitespace characters and line terminators.",
82 args: { name: "true|false|auto", isOptional: true },
83 },
84 {
85 name: ["--minified"],
86 description: "Save as many bytes when printing. (false by default)",
87 },
88 {
89 name: ["--auxiliary-comment-before"],
90 description: "Print a comment before any injected non-user code.",
91 args: { name: "string", isOptional: true },
92 },
93 {
94 name: ["--auxiliary-comment-after"],
95 description: "Print a comment after any injected non-user code.",
96 args: { name: "string", isOptional: true },
97 },
98 {
99 name: ["-s", "--source-maps"],
100 args: { name: "true|false|inline|both", isOptional: true },
101 },
102 {
103 name: ["--source-map-target"],
104 description: "Set `file` on returned source map.",
105 args: { name: "string", isOptional: true },
106 },
107 {
108 name: ["--source-file-name"],
109 description: "Set `sources[0]` on returned source map.",
110 args: { name: "string", isOptional: true },
111 },
112 {
113 name: ["--source-root"],
114 description: "The root from which all sources are relative.",
115 args: { name: "filename", isOptional: true },
116 },
117 {
118 name: ["-x", "--extensions"],
119 description:
120 "List of extensions to compile when a directory has been the input. [js,ts,jsx,tsx]",
121 args: { name: "extensions", isOptional: true },
122 },
123 {
124 name: ["--keep-file-extension"],
125 description: "Preserve the file extensions of the input files.",
126 },
127 { name: ["-w", "--watch"], description: "Recompile files on changes." },
128 {
129 name: ["--skip-initial-build"],
130 description: "Do not compile files before watching.",
131 },
132 {
133 name: ["-o", "--out-file"],
134 description: "Compile all input files into a single file.",
135 args: { name: "out", isOptional: true },
136 },
137 {
138 name: ["-d", "--out-dir"],
139 description:
140 "Compile an input directory of modules into an output directory.",
141 args: { name: "out", isOptional: true },
142 },
143 {
144 name: ["--relative"],
145 description:
146 "Compile into an output directory relative to input directory or file. Requires --out-dir [out]",
147 },
148 {
149 name: ["-D", "--copy-files"],
150 description: "When compiling a directory copy over non-compilable files.",
151 },
152 {
153 name: ["--include-dotfiles"],
154 description:
155 "Include dotfiles when compiling and copying non-compilable files.",
156 },
157 {
158 name: ["--no-copy-ignored"],
159 description: "Exclude ignored files when copying non-compilable files.",
160 },
161 {
162 name: ["--verbose"],
163 description: "Log everything. This option conflicts with --quiet",
164 },
165 {
166 name: ["--quiet"],
167 description: "Don't log anything. This option conflicts with --verbose",
168 },
169 {
170 name: ["--delete-dir-on-start"],
171 description: "Delete the out directory before compilation.",
172 },
173 {
174 name: ["--out-file-extension"],
175 description: "Use a specific extension for the output files",
176 args: { name: "string", isOptional: true },
177 },
178 { name: ["-V", "--version"], description: "output the version number" },
179 {
180 name: ["-h", "--help"],
181 description: "display help for command",
182 priority: 49,
183 },
184 ],
185 };
186
187 export default completionSpec;
188