Debian Codegraph @

merge/test/fixtures/autocomplete-tools-cli/expected.ts

raw symbols SCIP
1 // Autogenerated by @fig/complete-commander
2 const completionSpec: Fig.Spec = {
3 name: "@withfig/autocomplete-tools",
4 description: "Dev tools for fig's autocomplete",
5 subcommands: [
6 {
7 name: "init",
8 description:
9 "initialize fig custom spec boilerplate in current directory",
10 options: [
11 {
12 name: ["-h", "--help"],
13 description: "display help for command",
14 priority: 49,
15 },
16 ],
17 },
18 {
19 name: "create-spec",
20 description: "create spec with given name",
21 options: [
22 {
23 name: ["-h", "--help"],
24 description: "display help for command",
25 priority: 49,
26 },
27 ],
28 args: [{ name: "name", isOptional: true }],
29 },
30 {
31 name: "compile",
32 description: "compile specs in the current directory",
33 options: [
34 {
35 name: ["-w", "--watch"],
36 description: "Watch files and re-compile on change",
37 },
38 {
39 name: ["-h", "--help"],
40 description: "display help for command",
41 priority: 49,
42 },
43 ],
44 },
45 {
46 name: "dev",
47 description: "watch for changes and compile specs",
48 options: [
49 {
50 name: ["-h", "--help"],
51 description: "display help for command",
52 priority: 49,
53 },
54 ],
55 },
56 {
57 name: "merge",
58 description: "deep merge new spec into old spec",
59 options: [
60 {
61 name: ["-n", "--new-file"],
62 description: "Create a new spec file instead of updating the old one",
63 args: { name: "path", template: "filepaths" },
64 },
65 {
66 name: ["-i", "--ignore-props"],
67 description: "The props that should always be overridden.",
68 args: { name: "props" },
69 exclusiveOn: ["--preset"],
70 },
71 {
72 name: ["--ignore-command-props"],
73 description: "The command props that should always be overridden.",
74 args: { name: "props" },
75 exclusiveOn: ["--preset"],
76 },
77 {
78 name: ["--ignore-option-props"],
79 description: "The option props that should always be overridden.",
80 args: { name: "props" },
81 exclusiveOn: ["--preset"],
82 },
83 {
84 name: ["--ignore-arg-props"],
85 description: "The arg props that should always be overridden.",
86 args: { name: "props" },
87 exclusiveOn: ["--preset"],
88 },
89 {
90 name: ["-p", "--preset"],
91 description: "Use a preset",
92 args: {
93 name: "name",
94 suggestions: [
95 "commander",
96 "oclif",
97 "cobra",
98 "clap",
99 "swift-argument-parser",
100 ],
101 },
102 priority: 76,
103 exclusiveOn: [
104 "--ignore-props",
105 "--ignore-command-props",
106 "--ignore-option-props",
107 "--ignore-arg-props",
108 ],
109 },
110 {
111 name: ["-h", "--help"],
112 description: "display help for command",
113 priority: 49,
114 },
115 ],
116 args: [
117 { name: "oldspec", template: "filepaths" },
118 { name: "newspec", template: "filepaths" },
119 ],
120 },
121 {
122 name: "version",
123 subcommands: [
124 {
125 name: "add-diff",
126 description:
127 "generate version diff from new spec and add into old spec",
128 options: [
129 {
130 name: ["-n", "--new-path"],
131 description:
132 "Create a new spec folder instead of overwriting the old one",
133 args: { name: "path" },
134 },
135 {
136 name: ["--use-minor-base"],
137 description: "Create a new version file per minor version",
138 },
139 {
140 name: ["-h", "--help"],
141 description: "display help for command",
142 priority: 49,
143 },
144 ],
145 args: [
146 { name: "specName" },
147 { name: "newSpecFile" },
148 { name: "diffVersion" },
149 ],
150 },
151 {
152 name: "init-spec",
153 description: "generate versioned spec in folder specified by path",
154 options: [
155 {
156 name: ["-h", "--help"],
157 description: "display help for command",
158 priority: 49,
159 },
160 ],
161 args: [{ name: "path" }],
162 },
163 {
164 name: "precompute-specs",
165 description:
166 "[Unimplemented] Precompute versioned specs before publishing the specs repo (unimplemented)",
167 options: [
168 {
169 name: ["-h", "--help"],
170 description: "display help for command",
171 priority: 49,
172 },
173 ],
174 args: [{ name: "files", isVariadic: true }],
175 },
176 {
177 name: "help",
178 description: "display help for command",
179 priority: 49,
180 args: { name: "command", isOptional: true },
181 },
182 ],
183 options: [
184 {
185 name: ["-h", "--help"],
186 description: "display help for command",
187 priority: 49,
188 },
189 ],
190 },
191 {
192 name: "help",
193 description: "display help for command",
194 priority: 49,
195 args: { name: "command", isOptional: true },
196 },
197 ],
198 options: [
199 { name: ["-V", "--version"], description: "output the version number" },
200 {
201 name: ["-h", "--help"],
202 description: "display help for command",
203 priority: 49,
204 },
205 ],
206 icon: "https://fig.io/icons/fig-light.png",
207 };
208 export default completionSpec;