Skip to content

Commit fc1821b

Browse files
committed
workbench: extract wb function start-tracers, stop-all, fetch-logs
1 parent 856781d commit fc1821b

File tree

8 files changed

+717
-613
lines changed

8 files changed

+717
-613
lines changed

nix/workbench/backend/backend.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,29 @@ backend() {
3838
local op=${1:-$(usage_backend)} # No need to shift -- backends will use the op.
3939

4040
case "${op}" in
41-
is-running ) backend_$WB_BACKEND "$@";;
41+
# Prepare functions
4242
setenv-defaults ) backend_$WB_BACKEND "$@";;
4343
allocate-run ) backend_$WB_BACKEND "$@";;
4444
describe-run ) backend_$WB_BACKEND "$@";;
45+
# Start functions
46+
is-running ) backend_$WB_BACKEND "$@";;
47+
start-cluster ) backend_$WB_BACKEND "$@";;
4548
deploy-genesis ) backend_$WB_BACKEND "$@";;
46-
start ) backend_$WB_BACKEND "$@";;
49+
# Sceneario functions
50+
start-tracers ) backend_$WB_BACKEND "$@";;
4751
start-nodes ) backend_$WB_BACKEND "$@";;
52+
start-generator ) backend_$WB_BACKEND "$@";;
53+
start-healthchecks ) backend_$WB_BACKEND "$@";;
54+
# Fine grained
4855
start-node ) backend_$WB_BACKEND "$@";;
4956
stop-node ) backend_$WB_BACKEND "$@";;
5057
wait-node ) backend_$WB_BACKEND "$@";;
5158
wait-node-stopped ) backend_$WB_BACKEND "$@";;
5259
get-node-socket-path ) backend_$WB_BACKEND "$@";;
53-
start-generator ) backend_$WB_BACKEND "$@";;
54-
start-healthchecks ) backend_$WB_BACKEND "$@";;
5560
wait-pools-stopped ) backend_$WB_BACKEND "$@";;
61+
# Stop functions
62+
stop-all ) backend_$WB_BACKEND "$@";;
63+
fetch-logs ) backend_$WB_BACKEND "$@";;
5664
stop-cluster ) backend_$WB_BACKEND "$@";;
5765
cleanup-cluster ) backend_$WB_BACKEND "$@";;
5866

0 commit comments

Comments
 (0)