Generate a Fig Spec file for `fig.io` using helper function
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?
"Yes!";
@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 🚀
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!
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).
Some good news for y'all! It'd include citty out of the box.
https://github.com/bombshell-dev/tab/pull/10