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.
Key points:
- Improves developer and user experience on the command line.
- Does not modify or replace existing functionality.
- Placed under
contrib/
for easy installation by users and distributions.