BUG Wrong completion generation for installed binary on linux
kind/bug
**Describe the bug**
`scorecard completion` generates completions for `./scorecard`, not for the `scorecard` command.
**Reproduction steps**
Steps to reproduce the behavior:
1. `apt-get install bash-completion` (or the equivalent for your distro)
2. Start new shell: `bash`
3. Install the standalone binary from zip file
4. Initialize completion: `source <(scorecard completion bash)`
5. `./scorecard ver<TAB>` works correctly in the directory with the scorecard binary.
6. `scorecard ver<TAB>` doesn't work.
I’d like to work on this issue.
1 条评论