Some of the frameworks have added an extra config parameter to the setup call to pass in custom completions:
|
const completion = await tab(main, { |
The README uses a programmatic approach:
https://github.com/bombshell-dev/tab/blob/532721ccc32f3ba27178fe13e651133a40394d48/README.md?plain=1#L252-259
The Commander example does not currently have functional custom completions. Which style would you prefer to use? Commander uses lots of chaining and hierarchy and little JSON, so the style used in the README is comfortable. But consistency across examples and frameworks may well be preferred.
Some of the frameworks have added an extra config parameter to the setup call to pass in custom completions:
tab/examples/demo.citty.ts
Line 131 in 532721c
The README uses a programmatic approach:
https://github.com/bombshell-dev/tab/blob/532721ccc32f3ba27178fe13e651133a40394d48/README.md?plain=1#L252-259
The Commander example does not currently have functional custom completions. Which style would you prefer to use? Commander uses lots of chaining and hierarchy and little JSON, so the style used in the README is comfortable. But consistency across examples and frameworks may well be preferred.