Skip to content

feat: Add "print completion" command. #58

@renancaraujo

Description

@renancaraujo

Description

Some CLIs choose not to auto-install the completion files but rather to expose a command where a completion script is printed in the stdout.

Then a CLI user's usage would be like this:

my_cli completion-script >> ~/.zshrc

Requirements

  • Add this command if and only if auto-install is deactivated

Additional Context

The same approach used by NPM and GH CLI, among others

As described by this comment: #47 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature or requestp2Important issues not at the top of the work list

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions