Skip to content

Commit 96396ee

Browse files
committed
Event names use ' ' instead of '_' as delimiter
1 parent ef71a16 commit 96396ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ loco_loadproject() {
6666
;;
6767
esac
6868

69-
event fire "finalize_project" # allow overriding the final compose project def
69+
event fire "finalize project" # allow overriding the final compose project def
7070
RUN_JQ -c -n >"$json"; DOCO_CONFIG=$json; services-matching || return
7171
DOCO_CONFIG='' GROUP --all := "${REPLY[@]}" # ensure SERVICES exist for all services
7272
target --all readonly # make --all a read-only group
73-
event fire "before_commands" # hook to set up aliases, custom commands, etc.
73+
event fire "before commands" # hook to set up aliases, custom commands, etc.
7474
}
7575

7676
# Run a command with variants accepted by docker-compose, first checking that

bin/doco

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,11 @@ loco_loadproject() {
465465
;;
466466
esac
467467
468-
event fire "finalize_project" # allow overriding the final compose project def
468+
event fire "finalize project" # allow overriding the final compose project def
469469
RUN_JQ -c -n >"$json"; DOCO_CONFIG=$json; services-matching || return
470470
DOCO_CONFIG='' GROUP --all := "${REPLY[@]}" # ensure SERVICES exist for all services
471471
target --all readonly # make --all a read-only group
472-
event fire "before_commands" # hook to set up aliases, custom commands, etc.
472+
event fire "before commands" # hook to set up aliases, custom commands, etc.
473473
}
474474
475475
# Run a command with variants accepted by docker-compose, first checking that

specs/Config.cram.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ Either way, service targets are created for any services that don't already have
9090
/*/Config.cram.md/t/docker-compose.override.yaml" (glob)
9191

9292
# .env file is auto-loaded, using docker-compose .env syntax, and
93-
# the "finalize_project" and "before_commands" events are run, with
93+
# the "finalize project" and "before commands" events are run, with
9494
# a readonly '--all' group defined:
9595

9696
$ echo "FOO=baz'bar" >.env
9797

9898
$ cat <<'EOF' >.doco
9999
> doco.dump() { echo "${DOCO_SERVICES[@]}"; echo "$FOO"; }
100-
> event on "finalize_project" echo "hi!"
101-
> event on "before_commands" declare -p __doco_target__2d_2dall
100+
> event on "finalize project" echo "hi!"
101+
> event on "before commands" declare -p __doco_target__2d_2dall
102102
> EOF
103103
104104
$ run-doco t dump

0 commit comments

Comments
 (0)