Entrypoint steps are functions called from main (closes #163) #180

Merged
clawbot merged 1 commits from issue-163-entrypoint-functions into next 2026-10-19 07:17:33 +02:00
1 Commits
Author SHA1 Message Date
sneak 649947f21a Entrypoint steps are functions called from main (closes #163)
check / check (push) Waiting to run
bin/entrypoint.sh was top-level code with one helper; the shell section
of the code style guide asks for every step in a function and a main
called at the end. The PORT and TRUSTED_PROXIES checks, the data
directory, starting each process, the wait loop, stopping both and the
exit are now functions, which main calls in order, setting the stop
trap before either process starts. It stays POSIX sh with no set -e.
Messages and exit codes are unchanged; the 8081 message is passed to
echo as two arguments so its line fits in 80 columns.

Model: opus-5-5
2026-10-19 05:02:57 +00:00