Skip to content

feat: add shell completions subcommand - #16

Merged
sounak98 merged 2 commits into
mainfrom
feat/shell-completions
Mar 7, 2026
Merged

sounak98 merged 2 commits into
mainfrom
feat/shell-completions

Conversation

@sounak98

@sounak98 sounak98 commented Mar 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add bs completions <shell> subcommand using clap_complete to generate shell completions
  • Supports bash, zsh, fish, powershell, and elvish
  • Handles completions generation before any token/config resolution so it works without authentication
  • Auto-installs completions for the user's shell during install.sh (detects bash/zsh/fish from $SHELL)

Test plan

  • cargo build compiles without errors
  • All existing tests pass
  • bs completions bash/zsh/fish outputs valid completion scripts
  • Run install.sh and verify completions are installed for current shell

@sounak98
sounak98 force-pushed the feat/shell-completions branch 2 times, most recently from 62beb99 to dbc0782 Compare March 7, 2026 02:03
sounak98 added 2 commits March 7, 2026 03:09
Add `bs completions <shell>` to generate shell completions for bash,
zsh, fish, powershell, and elvish using clap_complete.
Detect user's shell and generate completions during install for bash,
zsh, and fish. Falls back to a hint for other shells.
@sounak98
sounak98 force-pushed the feat/shell-completions branch from dbc0782 to 35c8447 Compare March 7, 2026 02:09
@sounak98
sounak98 merged commit 926f59f into main Mar 7, 2026
3 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.

1 participant