Conversation
|
@AmirSa12 is attempting to deploy a commit to the Nitro Team on Vercel. A member of the Team first needs to authorize it. |
| const minifyOption = buildCommand.options.get("minify"); | ||
| if (minifyOption) { | ||
| minifyOption.handler = (complete) => { | ||
| complete("true", "Enable minification"); |
There was a problem hiding this comment.
Could we somehow integrate it with citty core to avoid custom logic for each arg? (we have an object of args with their meta)
There was a problem hiding this comment.
Yes, that's what I'm trying to do.
There is an open PR that integrates tab with citty core:
unjs/citty#211
with this, we can avoid this part.
| const presetOption = buildCommand.options.get("preset"); | ||
| if (presetOption) { | ||
| presetOption.handler = (complete) => { | ||
| complete("node-server", "Node.js server"); |
There was a problem hiding this comment.
(TODO for myself): List can come from auto gen file
|
Salam @pi0! I heard there were concerns about tab depending on the |
|
Amazin @AmirSa12! I will also try to find some time moving citty PR forward to make it happen! |
🔗 Linked issue
❓ Type of change
📚 Description
This PR introduces tab completion functionality for the nitro cli, improving developer experience by allowing shell(zsh, powershell, fish, bash) autocompletion for commands, options, values, and flags. With this PR, users can navigate available commands, options and values faster!
A small video of how this looks:
nuxi.mp4
📝 Checklist