Skip to content

🐛 Fix scorecard completion generates#5027

Open
dovydenkovas wants to merge 1 commit intoossf:mainfrom
dovydenkovas:fix-completion-command
Open

🐛 Fix scorecard completion generates#5027
dovydenkovas wants to merge 1 commit intoossf:mainfrom
dovydenkovas:fix-completion-command

Conversation

@dovydenkovas
Copy link
Copy Markdown

What kind of change does this PR introduce?

bug fix

What is the current behavior?

Now you could run:

source <(scorecard completion bash)

and then use competion for installed scorecard:

./scorecard ver<TAB>  # works
scorecard ver<TAB>    # doesn't work

What is the new behavior

Changed ./scorecard command in help message and completion to scorecard.
Now you could run:

source <(scorecard completion bash)

and then use competion for installed scorecard:

scorecard ver<TAB> 

Which issue(s) this PR fixes

Fixes #5019

Special notes for your reviewer

It will break completion for users who put scorecard in local directory and run it from there.

Does this PR introduce a user-facing change?

Fixed competion for scorecard installed in PATH

scorecard completion command generates
completions for `scorecard`, instead of `./scorecard` command.
@dovydenkovas dovydenkovas requested a review from a team as a code owner April 20, 2026 08:57
@dovydenkovas dovydenkovas requested review from justaugustus and spencerschrock and removed request for a team April 20, 2026 08:57
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

BUG Wrong completion generation for installed binary on linux

1 participant