Skip to content

feat: Add "print completion" command. #58

Closed

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)

Activity

  1. moved this from Needs Triage to Backlog in VGV Open Source 🦄 🧙🌟on Feb 13, 2023
  2. bartekpacia commented on Jul 24, 2023

    @bartekpacia

    This would be awesome to have!

  3. added
    p2Important issues not at the top of the work list
    on Feb 21, 2024
  4. unicoderbot commented on Aug 10, 2026

    @unicoderbot
    Contributor

    Great, I will work on a PR and push it soon.

    • Preparing environment
      • Cloning repository
      • Setting up dev environment
    • Working on changes
    • Reviewing changes
    • Opening pull request

    I've opened a pull request: #128

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions