Skip to content

Add mechanism to generate traditional completion scripts #4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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