Skip to content

cli: use actual binary name in completion scripts#25

Merged
abraithwaite merged 1 commit into
mainfrom
alan-completion-binary-name
May 4, 2026
Merged

cli: use actual binary name in completion scripts#25
abraithwaite merged 1 commit into
mainfrom
alan-completion-binary-name

Conversation

@abraithwaite

Copy link
Copy Markdown
Member

Summary

  • Completion scripts now use os.Args[0] (the actual binary name) instead of the app's logical name from cli.New()
  • Fixes completions when the binary is renamed or symlinked (e.g. rrclirunreveal)

Completion scripts were using the app's logical name (from cli.New())
instead of the actual binary name (os.Args[0]). This meant renaming or
symlinking the binary would produce scripts that registered completions
for the wrong command name.
@abraithwaite abraithwaite merged commit 6da42d9 into main May 4, 2026
1 check passed
@abraithwaite abraithwaite deleted the alan-completion-binary-name branch May 4, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant