citty icon indicating copy to clipboard operation
citty copied to clipboard

Generate a Fig Spec file for `fig.io` using helper function

Open cpreston321 opened this issue 2 years ago • 5 comments

Describe the feature

fig.io provides some additional cli's that they generate a spec for but I really do think the citty DX will be brought to a new level in combination.

Helpful links: https://fig.io/docs/guides/integrating/getting-started

Commander.js Spec Generator: https://www.npmjs.com/package/@fig/complete-commander?activeTab=code

Additional information

  • [ ] Would you be willing to help implement this feature?

cpreston321 avatar Aug 29 '23 13:08 cpreston321

"Yes!";

pi0 avatar Aug 29 '23 13:08 pi0

@pi0 Not to mention once this is implemented you could easily publish spec within an action (automatically): https://fig.io/docs/guides/integrating/push-to-autocomplete-action

This would be helpful for everyone using: nuxi, unbuild and etc 🚀

cpreston321 avatar Aug 29 '23 13:08 cpreston321

Indeed. I had been for long thinking to support auto completions. It would probably best if we also consider an abstraction first in citty for other shells integration (it shouldn't be something hard...) and also fig ingration would make it awesome!

pi0 avatar Aug 29 '23 13:08 pi0

As mentioned in #168, we're working on a tool called @bombsh/tab which provides full support for autocompletions in citty. And hopefully we'll add fig.io support as Pooya suggested, so this would be achieved out of the box.

If anyone would like to be an early tester, feel free to let me know so I grant you access to the repo (e.g. twitter dms or anything else).

Aslemammad avatar Oct 09 '24 20:10 Aslemammad

Some good news for y'all! It'd include citty out of the box.

https://github.com/bombshell-dev/tab/pull/10

Aslemammad avatar Feb 24 '25 12:02 Aslemammad