Skip to content

Best way to add custom completions in examples for Commander #126

@shadowspawn

Description

@shadowspawn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions