|
12 | 12 | "args": [ |
13 | 13 | { |
14 | 14 | "name": "name", |
15 | | - "generators": { |
16 | | - "script": "/bin/ls -1 ~/.asdf/repository/plugins", |
17 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
18 | | - } |
| 15 | + "generatorName": "available_plugins" |
19 | 16 | }, |
20 | 17 | { |
21 | 18 | "name": "git-url", |
|
48 | 45 | "description": "Remove plugin and package versions", |
49 | 46 | "args": { |
50 | 47 | "name": "name", |
51 | | - "generators": { |
52 | | - "script": "asdf plugin-list", |
53 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
54 | | - } |
| 48 | + "generatorName": "installed_plugins" |
55 | 49 | } |
56 | 50 | }, |
57 | 51 | { |
|
85 | 79 | "args": [ |
86 | 80 | { |
87 | 81 | "name": "name", |
88 | | - "generators": { |
89 | | - "script": "/bin/ls -1 ~/.asdf/repository/plugins", |
90 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
91 | | - } |
| 82 | + "generatorName": "available_plugins" |
92 | 83 | }, |
93 | 84 | { |
94 | 85 | "name": "git-url", |
|
125 | 116 | "description": "Remove plugin and package versions", |
126 | 117 | "args": { |
127 | 118 | "name": "name", |
128 | | - "generators": { |
129 | | - "script": "asdf plugin-list", |
130 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
131 | | - } |
| 119 | + "generatorName": "installed_plugins" |
132 | 120 | } |
133 | 121 | }, |
134 | 122 | { |
|
160 | 148 | "args": [ |
161 | 149 | { |
162 | 150 | "name": "name", |
163 | | - "generators": { |
164 | | - "script": "asdf plugin-list", |
165 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
166 | | - }, |
| 151 | + "generatorName": "installed_plugins", |
167 | 152 | "isOptional": true |
168 | 153 | }, |
169 | 154 | { |
|
174 | 159 | "isDangerous": true |
175 | 160 | } |
176 | 161 | ], |
177 | | - "generators": { |
178 | | - "script": "_NuFrRa_e=>`asdf list-all ${e[e.length-2]}`", |
179 | | - "cache": { |
180 | | - "ttl": 3600000 |
181 | | - }, |
182 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))", |
183 | | - "getQueryTerm": "_NuFrRa_n=>n.includes(\"latest\")?n.slice(n.indexOf(\":\")+1):n" |
184 | | - }, |
| 162 | + "generatorName": "all_versions", |
185 | 163 | "isOptional": true |
186 | 164 | } |
187 | 165 | ] |
|
192 | 170 | "args": [ |
193 | 171 | { |
194 | 172 | "name": "name", |
195 | | - "generators": { |
196 | | - "script": "asdf plugin-list", |
197 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
198 | | - } |
| 173 | + "generatorName": "installed_plugins" |
199 | 174 | }, |
200 | 175 | { |
201 | 176 | "name": "version", |
202 | | - "generators": { |
203 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
204 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
205 | | - }, |
| 177 | + "generatorName": "installed_versions", |
206 | 178 | "isOptional": true |
207 | 179 | } |
208 | 180 | ] |
|
213 | 185 | "args": { |
214 | 186 | "name": "name", |
215 | 187 | "isOptional": true, |
216 | | - "generators": { |
217 | | - "script": "asdf plugin-list", |
218 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
219 | | - } |
| 188 | + "generatorName": "installed_plugins" |
220 | 189 | } |
221 | 190 | }, |
222 | 191 | { |
|
225 | 194 | "args": [ |
226 | 195 | { |
227 | 196 | "name": "name", |
228 | | - "generators": { |
229 | | - "script": "asdf plugin-list", |
230 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
231 | | - } |
| 197 | + "generatorName": "installed_plugins" |
232 | 198 | }, |
233 | 199 | { |
234 | 200 | "name": "version", |
235 | | - "generators": { |
236 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
237 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
238 | | - }, |
| 201 | + "generatorName": "installed_versions", |
239 | 202 | "isOptional": true |
240 | 203 | } |
241 | 204 | ] |
|
245 | 208 | "description": "Display path to an executable", |
246 | 209 | "args": { |
247 | 210 | "name": "command", |
248 | | - "generators": { |
249 | | - "script": "/bin/ls -1 ~/.asdf/shims", |
250 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Shim name\",priority:76,icon:\"fig://icon?type=command\"},n))" |
251 | | - } |
| 211 | + "generatorName": "shims" |
252 | 212 | } |
253 | 213 | }, |
254 | 214 | { |
|
257 | 217 | "args": [ |
258 | 218 | { |
259 | 219 | "name": "name", |
260 | | - "generators": { |
261 | | - "script": "asdf plugin-list", |
262 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
263 | | - } |
| 220 | + "generatorName": "installed_plugins" |
264 | 221 | }, |
265 | 222 | { |
266 | 223 | "name": "version", |
267 | | - "generators": { |
268 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
269 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
270 | | - } |
| 224 | + "generatorName": "installed_versions" |
271 | 225 | } |
272 | 226 | ] |
273 | 227 | }, |
|
277 | 231 | "args": [ |
278 | 232 | { |
279 | 233 | "name": "name", |
280 | | - "generators": { |
281 | | - "script": "asdf plugin-list", |
282 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
283 | | - } |
| 234 | + "generatorName": "installed_plugins" |
284 | 235 | }, |
285 | 236 | { |
286 | 237 | "name": "version", |
287 | | - "generators": { |
288 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
289 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
290 | | - } |
| 238 | + "generatorName": "installed_versions" |
291 | 239 | } |
292 | 240 | ] |
293 | 241 | }, |
|
297 | 245 | "args": [ |
298 | 246 | { |
299 | 247 | "name": "name", |
300 | | - "generators": { |
301 | | - "script": "asdf plugin-list", |
302 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
303 | | - } |
| 248 | + "generatorName": "installed_plugins" |
304 | 249 | }, |
305 | 250 | { |
306 | 251 | "name": "version", |
307 | | - "generators": { |
308 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
309 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
310 | | - } |
| 252 | + "generatorName": "installed_versions" |
311 | 253 | } |
312 | 254 | ] |
313 | 255 | }, |
|
317 | 259 | "args": [ |
318 | 260 | { |
319 | 261 | "name": "name", |
320 | | - "generators": { |
321 | | - "script": "asdf plugin-list", |
322 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
323 | | - } |
| 262 | + "generatorName": "installed_plugins" |
324 | 263 | }, |
325 | 264 | { |
326 | 265 | "name": "version", |
327 | | - "generators": { |
328 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
329 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
330 | | - }, |
| 266 | + "generatorName": "installed_versions", |
331 | 267 | "isOptional": true |
332 | 268 | } |
333 | 269 | ] |
|
337 | 273 | "description": "List installed versions of a package", |
338 | 274 | "args": { |
339 | 275 | "name": "name", |
340 | | - "generators": { |
341 | | - "script": "asdf plugin-list", |
342 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
343 | | - } |
| 276 | + "generatorName": "installed_plugins" |
344 | 277 | }, |
345 | 278 | "subcommands": [ |
346 | 279 | { |
|
350 | 283 | "args": [ |
351 | 284 | { |
352 | 285 | "name": "name", |
353 | | - "generators": { |
354 | | - "script": "asdf plugin-list", |
355 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
356 | | - } |
| 286 | + "generatorName": "installed_plugins" |
357 | 287 | }, |
358 | 288 | { |
359 | 289 | "name": "version", |
360 | | - "generators": { |
361 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
362 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
363 | | - }, |
| 290 | + "generatorName": "all_versions", |
364 | 291 | "isOptional": true |
365 | 292 | } |
366 | 293 | ] |
|
373 | 300 | "args": [ |
374 | 301 | { |
375 | 302 | "name": "name", |
376 | | - "generators": { |
377 | | - "script": "asdf plugin-list", |
378 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
379 | | - } |
| 303 | + "generatorName": "installed_plugins" |
380 | 304 | }, |
381 | 305 | { |
382 | 306 | "name": "version", |
383 | | - "generators": { |
384 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
385 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
386 | | - }, |
| 307 | + "generatorName": "all_versions", |
387 | 308 | "isOptional": true |
388 | 309 | } |
389 | 310 | ] |
|
394 | 315 | "args": [ |
395 | 316 | { |
396 | 317 | "name": "name", |
397 | | - "generators": { |
398 | | - "script": "asdf plugin-list", |
399 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
400 | | - } |
| 318 | + "generatorName": "installed_plugins" |
401 | 319 | }, |
402 | 320 | { |
403 | 321 | "name": "version", |
404 | | - "generators": { |
405 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
406 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
407 | | - }, |
| 322 | + "generatorName": "installed_versions", |
408 | 323 | "isOptional": true |
409 | 324 | } |
410 | 325 | ] |
|
414 | 329 | "description": "Executes the command shim for the current version", |
415 | 330 | "args": { |
416 | 331 | "name": "command", |
417 | | - "generators": { |
418 | | - "script": "/bin/ls -1 ~/.asdf/shims", |
419 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Shim name\",priority:76,icon:\"fig://icon?type=command\"},n))" |
420 | | - }, |
| 332 | + "generatorName": "shims", |
421 | 333 | "isCommand": true |
422 | 334 | } |
423 | 335 | }, |
|
426 | 338 | "description": "Prints or runs an executable under a command environment", |
427 | 339 | "args": { |
428 | 340 | "name": "command", |
429 | | - "generators": { |
430 | | - "script": "/bin/ls -1 ~/.asdf/shims", |
431 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Shim name\",priority:76,icon:\"fig://icon?type=command\"},n))" |
432 | | - } |
| 341 | + "generatorName": "shims" |
433 | 342 | } |
434 | 343 | }, |
435 | 344 | { |
|
442 | 351 | "args": [ |
443 | 352 | { |
444 | 353 | "name": "name", |
445 | | - "generators": { |
446 | | - "script": "asdf plugin-list", |
447 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Plugin name\",priority:76,icon:\"fig://icon?type=package\"},n))" |
448 | | - }, |
| 354 | + "generatorName": "installed_plugins", |
449 | 355 | "isOptional": true |
450 | 356 | }, |
451 | 357 | { |
452 | 358 | "name": "version", |
453 | | - "generators": { |
454 | | - "script": "_NuFrRa_e=>`asdf list ${e[e.length-2]}`", |
455 | | - "postProcess": "_NuFrRa_e=>e.split(`\n`).reverse().map(t=>a({name:`${t}`.trim(),description:\"Plugin version\",priority:76,icon:\"fig://icon?type=commit\"},n))" |
456 | | - }, |
| 359 | + "generatorName": "installed_versions", |
457 | 360 | "isOptional": true |
458 | 361 | } |
459 | 362 | ] |
|
467 | 370 | "description": "List for given command which plugins and versions provide it", |
468 | 371 | "args": { |
469 | 372 | "name": "command", |
470 | | - "generators": { |
471 | | - "script": "/bin/ls -1 ~/.asdf/shims", |
472 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Shim name\",priority:76,icon:\"fig://icon?type=command\"},n))" |
473 | | - } |
| 373 | + "generatorName": "shims" |
474 | 374 | } |
475 | 375 | } |
476 | 376 | ] |
|
480 | 380 | "description": "List for given command which plugins and versions provide it", |
481 | 381 | "args": { |
482 | 382 | "name": "command", |
483 | | - "generators": { |
484 | | - "script": "/bin/ls -1 ~/.asdf/shims", |
485 | | - "postProcess": "_NuFrRa_i=>i.split(`\n`).map(e=>a({name:`${e}`,description:\"Shim name\",priority:76,icon:\"fig://icon?type=command\"},n))" |
486 | | - } |
| 383 | + "generatorName": "shims" |
487 | 384 | } |
488 | 385 | }, |
489 | 386 | { |
|
0 commit comments