Skip to content

Add shell completions command #234

@va-an

Description

@va-an

Describe the enhancement
Add shell completions support via a new completions subcommand, similar to how rustup completions works.
The command would generate shell completion scripts for bash, zsh, fish, powershell, and elvish using clap_complete.

Example usage:

bdk-cli completions bash > ~/.local/share/bash-completion/completions/bdk-cli
bdk-cli completions zsh > ~/.zfunc/_bdk-cli

Use case
bdk-cli has many subcommands and options. Typing out full command names gets tedious, so tab completion would make the CLI much nicer to use.

Additional context
I've already started looking into the implementation and can open a PR if this sounds good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions