Skip to content

Add mechanism to generate traditional completion scripts #4

@dbarnett

Description

@dbarnett

The --_completion option includes the completion logic in the executable itself, and is invoked by a generic completion script that forwards all completions to it by default. It might make sense to create a parallel mechanism that dumps a standalone completion script.

For instance, this could be run on MYPROGRAM to detect supported args and generate traditional completion scripts for bash, zsh, fish, etc. This could help mitigate some drawbacks of the self-contained completion: slow completions for particularly slow executables and the extra dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions