orchestra: pre-release WIP snapshot (orchestra-06g4gbsq2wrgd5hgypyzz4tyh0-ec8111ad)

This commit is contained in:
2026-08-28 16:42:36 +04:00
parent ec0502f829
commit fb80b565e3
3 changed files with 46 additions and 27 deletions
+3 -26
View File
@@ -1,32 +1,9 @@
#!/usr/bin/env bash
main() {
local quiet=
local json=
local strict=
local unknown=
for arg in "$@"; do
if [ "$arg" = --help ]; then
printf 'Usage: %s [--quiet]\n\n' "${0##*/}"
printf 'Healthcheck script for Orchestra E2E tests.\n'
printf 'Exits 0 with a success message if all checks pass.\n'
printf ' --quiet Suppress the success message; still exits 0.\n'
exit 0
elif [ "$arg" = --quiet ]; then
quiet=1
elif [ "$arg" = --json ]; then
json=1
elif [ "$arg" = --strict ]; then
strict=1
else
[ -n "$unknown" ] || unknown=$arg
fi
done
. "$(dirname "$0")/flags.sh"
if [ -n "$strict" ] && [ -n "$unknown" ]; then
printf 'unknown flag: %s\n' "$unknown" >&2
exit 2
fi
main() {
parse_flags "$@"
if [ -n "$json" ]; then
printf '{"status":"ok","checks":1}\n'