Skip to content

Conversation

@kskarthik
Copy link
Contributor

@kskarthik kskarthik commented Jan 12, 2026

Summary

This patch fixes the incorrect binary name (default is the crate name i.e goose-cli) in the generated shell completions introduced in #6313

Also added a new flag to customize the binary name --bin-name to the completions sub command instead of hard coding it, as some distributions might ship with a different bin name.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested locally

Related Issues

Closes #6432

Screenshots/Demos (for UX changes)

goose completion --help

Usage: goose completion [OPTIONS] <SHELL>

Arguments:
  <SHELL>  [possible values: bash, elvish, fish, powershell, zsh]

Options:
      --bin-name <BIN_NAME>  Provide a custom binary name [default: goose]
  -h, --help                 Print help

   

Closes block#6432

Signed-off-by: Sai Karthik <kskarthik@disroot.org>
@alexhancock
Copy link
Collaborator

Nice catch and fix, thank you.

I'm wondering a bit about this part though

as some distributions might ship with a different bin name

How would this happen?

@DOsinga
Copy link
Collaborator

DOsinga commented Jan 12, 2026

I'd imagine you would just rename the goose binary to block_goose or whatever because it would conflict with something else.

@alexhancock
Copy link
Collaborator

fair enough. LGTM!

@kskarthik
Copy link
Contributor Author

kskarthik commented Jan 12, 2026

@alexhancock for eg: https://github.com/pressly/goose is also the binary name available in many linux distro repos

@alexhancock alexhancock merged commit 26c5a6c into block:main Jan 12, 2026
17 checks passed
fbalicchia pushed a commit to fbalicchia/goose that referenced this pull request Jan 13, 2026
Signed-off-by: Sai Karthik <kskarthik@disroot.org>
zanesq added a commit that referenced this pull request Jan 13, 2026
…ased

* 'main' of github.com:block/goose: (23 commits)
  Use Intl.NumberFormat for token formatting in SessionsInsights (#6466)
  feat(ui): format large and small token counts for readability (#6449)
  fix: apply subrecipes when using slash commands (#6460)
  Fix: exclude platform_schedule_tool in CLI (#6442)
  Fix: Small update in how ML-based prompt injection determines final result (#6439)
  docs: remove SSE transport and rename to Streamable HTTP (#6319)
  fix: correct Cloudinary extension command and env variable (#6453)
  fix: add gap between buttons in MacDesktopInstallButtons.js (#6452)
  refactor: include hidden dotfiles folders in file picker search (#6315)
  upgraded safe npm packages (#6450)
  chore(deps): bump react-router and react-router-dom in /ui/desktop (#6408)
  chore(deps): bump lru from 0.12.5 to 0.16.3 (#6379)
  chore(deps-dev): bump @modelcontextprotocol/sdk from 1.24.0 to 1.25.2 in /ui/desktop (#6375)
  fix: inconsistent API url requirement between desktop and CLI versions (#6419)
  feat(vertexai): Add streaming support (#6409)
  fix deeplink recipe launch cold start (#6210)
  Spell check setting (#6446)
  File bug directly (#6413)
  fix(cli): incorrect bin name in shell completions (#6444)
  Use crunchy from crates instead of git fork (#6415)
  ...
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.

goose completion zsh generates incorrect #compdef goose-cli header, breaking autoloading

3 participants