Skip to content

Commit ebb8932

Browse files
committed
Merge #229: feat(run-bitcoind): add run as alias for start
83bf49d feat(run-bitcoind): add run as alias for start (oyindamola oladapo) Pull request description: ### Summary This PR adds support for `run-bitcoind run` as an alias for `run-bitcoind start`. ### Changes - Updated the command parser to treat `run` the same as `start`, without changing existing behavior. This allows users to invoke: ```bash ./run-bitcoind.sh run [VERSION_ALIAS] ``` closes #226 ACKs for top commit: tcharding: ACK 83bf49d Tree-SHA512: 033d381d7c844c53f48fa166e15dc734e5162bceeb947a8341fea41432d620b44db5368f0aabf22989d42b02cbfb7570bb28f177f21ad9270e37fc4cd8f60c0a
2 parents e04b04b + 83bf49d commit ebb8932

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/run-bitcoind.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ COMMAND
2121
2222
- all Start all bitcoind versions defined in the config file.
2323
- start [VERSION_ALIAS] Start bitcoind nodes for the specified version alias (default: v22).
24+
- run [VERSION_ALIAS] Alias for `start [VERSION_ALIAS]`. Provided for ergonomic compatibility.
2425
- stop Kill all bitcoind nodes and clean up test directories.
2526
2627
CONFIGURATION
@@ -61,7 +62,7 @@ main() {
6162
fi
6263

6364
case $cmd in
64-
all|start)
65+
all|start|run)
6566
# Config loading logic
6667
local config_file=${RUN_BITCOIND_CONF:-}
6768

@@ -110,7 +111,7 @@ main() {
110111
done
111112
;;
112113

113-
start)
114+
start|run)
114115
if [ -z "$version" ]; then
115116
version="v22" # Default version
116117
fi

0 commit comments

Comments
 (0)