Skip to content

Add shell completions command to payjoin-cli #1914

Open

Description

@AdamuAbba

Which crate is this feature request for?

payjoin-cli

Please describe the feature you'd like to see added.

Hey guys, would it be cool if we added shell completions to payjoin-cli? Building on @vadim-anfv’s awesome work in feat: add completions subcommand on bdk-cli, we could introduce a new completions subcommand.

The command would generate scripts for bash, zsh, fish, powershell, and elvish using clap_complete.

Example usage:

payjoin-cli completions bash > ~/.local/share/bash-completion/completions/payjoin-cli
payjoin-cli completions zsh > ~/.zfunc/_payjoin-cli

Is your feature related to a problem, if so please describe it.

Typing full command names may grow tedious, and tab completion could improve the CLI’s usability by reducing errors and unnecessary input.

Describe the solution you'd like

No response

Describe any alternatives you've considered

No response

Please leave any additional context

I've read @vadim-anfv’s implementation article on Tab completions for bdk-cli and would engineer a solution for payjoin-cli off of it and submit a PR if this is something we want to have on payjoin-cli. @benalleng what do you think?

Activity

  1. benalleng commented on Sep 28, 2026

    @benalleng
    Collaborator

    CNACK I appreciate the idea; I just don't think that there is that much value here. Compared to bdk-cli the number of possible options in the payjoin-cli reference implementation pales in comparison. I just don't think we have enough commands + subcommands to need this.

  2. AdamuAbba commented on Oct 4, 2026

    @AdamuAbba
    ContributorAuthor

    CNACK I appreciate the idea; I just don't think that there is that much value here. Compared to bdk-cli the number of possible options in the payjoin-cli reference implementation pales in comparison. I just don't think we have enough commands + subcommands to need this.

    You raise a sound point, and I agree that we can do without it for now until the range of options on payjoin-cli expands. For now I'll keep it in my back pocket, for when it becomes useful.

    Thanks for your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions