cli_completion icon indicating copy to clipboard operation
cli_completion copied to clipboard

feat: make where to install the completion files configurable

Open wolfenrain opened this issue 3 years ago • 2 comments

Description

As a developer that does not like my system to be touched without consent from me, by any software, I love that we can disable the auto install. But it would be even better if there is an API that allows me to specify where to install. I could then hook this up on my own CLI to give my users more fine-grained control.

Requirements

  • [ ] Being able to specify where to install the auto-completion files

wolfenrain avatar Jan 27 '23 09:01 wolfenrain

We have two levels in which this can be customized:

  1. The package provides an API in which CLI maintainers can customize the install location (which is pretty much what you are suggesting, I guess).
  2. The package provides an API in which the CLI users can customize the install location. For that, we can introduce a command that echoes the completion script and people can do this:
my_cli completion >> ~/.zshrc

renancaraujo avatar Jan 27 '23 09:01 renancaraujo

Looks like this issue can be closed, since (from the comment above):

  • approach (1) is already possible
  • approach (2) is tracked in issue #58

bartekpacia avatar Mar 11 '24 15:03 bartekpacia