This PR adds a bash completion script for the new bitcoin command-line tool (introduced in #31375), which unifies the main Bitcoin Core executables under a single interface. This feature improves usability, reduces errors, and makes the command-line tools more easily discoverable for users working in a Linux bash environment.
The completion script dynamically lists available commands and options by parsing bitcoin --help
and bitcoin help
. It also incorporates the existing bash completions for bitcoind
, bitcoin-cli
, and bitcoin-tx
, depending on the argument provided (node, rpc, or tx). This ensures that all relevant completions are available seamlessly through a single interface without modifying core functionality.
No functional changes to core code are introduced; this is an optional enhancement placed under contrib/
for easy installation and use.
Note:
This PR was created as a follow-up to #33382, which was automatically closed by DrahtBot immediately after submission. This version provides a more detailed description to ensure proper review and integration.