Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add "print completion" command. #58

Open
1 task
renancaraujo opened this issue Feb 13, 2023 · 1 comment
Open
1 task

feat: Add "print completion" command. #58

renancaraujo opened this issue Feb 13, 2023 · 1 comment
Labels
feature A new feature or request p2 Important issues not at the top of the work list

Comments

@renancaraujo
Copy link
Contributor

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)

@bartekpacia
Copy link

This would be awesome to have!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or request p2 Important issues not at the top of the work list
Projects
Status: Backlog
Development

No branches or pull requests

3 participants