Skip to content

Commit 7039b1e

Browse files
committed
play: play start & add more help
1 parent 08f74f8 commit 7039b1e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scripts/play

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ do
7272
docker top ${!i}
7373
exit
7474

75-
elif [[ ${!i} = start ]]; then
75+
elif [[ ${!i} = *start ]]; then
7676
((i++))
77-
docker start ${!i}
77+
docker restart ${!i}
7878
exit
7979

8080
elif [[ ${!i} = stop ]]; then
@@ -109,23 +109,23 @@ do
109109
((i++))
110110
echo
111111
echo "play ids"
112-
echo "play top <CONTAINER_ID>"
113-
echo "play <command> - execute shell command in container"
114-
echo "play -d '<command>' - send command to bitcoind"
115-
echo "play -cli '<command>' - send command to bitcoin-cli"
112+
echo "play top <CONTAINER_ID>"
113+
echo "play start <CONTAINER_ID>"
114+
echo "play stop <CONTAINER_ID>"
116115
echo
117116
echo "Examples:"
118117
echo
119-
echo "play ls"
120-
echo "play cd / & ls -a"
121-
echo "play -cli gettxoutsetinfo"
122-
echo "play -cli getmininginfo"
123-
echo "play -cli 'getblockhash 1000'"
118+
echo "docker exec -it <CONTAINER_ID> sh - enter container shell"
124119
echo
125-
echo "docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoind -daemon -prune=550'"
120+
echo "playground-bitcoind"
121+
echo
122+
echo "play -cli gettxoutsetinfo"
126123
echo "docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoin-cli gettxoutsetinfo'"
124+
echo "play -cli getmininginfo"
127125
echo "docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoin-cli getmininginfo'"
126+
echo "play -cli 'getblockhash 1000'"
128127
echo "docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoin-cli $1'"
128+
echo
129129
exit
130130

131131
elif [ -n ${!i} ]; then

0 commit comments

Comments
 (0)