Skip to content

Conversation

@kskarthik
Copy link
Contributor

@kskarthik kskarthik commented Jan 1, 2026

Summary

Hy again! This PR enables a CLI feature to generate completions for all system shells: bash, elvish, fish, powershell, zsh using the clap_complete crate https://docs.rs/clap_complete/latest/clap_complete/

Shell completions help users by suggesting command names, options, and values while typing in the command line, making it easier to discover and use commands without needing to remember exact syntax.

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. Build successful

Usage

goose completion --help

Generate the autocompletion script for the specified shell

Usage: goose completion <SHELL>

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

Options:
  -h, --help  Print help

@kskarthik kskarthik changed the title feat(cli): add subcommand completions to generate various shell completions feat(cli): add subcommand completion to generate various shell completions Jan 1, 2026
Enables to generate completions for all system shells

Signed-off-by: Sai Karthik <kskarthik@disroot.org>
Signed-off-by: Sai Karthik <kskarthik@disroot.org>
@DOsinga DOsinga requested a review from baxen January 5, 2026 14:22
Copy link
Collaborator

@jamadeo jamadeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jamadeo jamadeo merged commit 7c143b9 into block:main Jan 5, 2026
18 checks passed
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.

2 participants