prole/tests/shellspec/.vendor/shellspec-0.28.1/libexec/shellspec-task.sh
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims

- Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers

- Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them

- Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring

- Document the new layout in docs/layout.md

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-13 09:19:56 -07:00

34 lines
510 B
Bash
Executable File

#!/bin/sh
set -eu
# shellcheck source=lib/libexec/task.sh
. "${SHELLSPEC_LIB:-./lib}/libexec/task.sh"
use find_files
show_task() {
"$SHELLSPEC_PRINTF" '%-40s # %s\n' "$1" "$2"
}
run_tasks() {
while [ $# -gt 0 ]; do
invoke "$1"
shift
done
}
each_file() {
case $1 in (*_task.sh)
eval "SHELLSPEC_TASK_SOURCE=\$1"
# shellcheck disable=SC1090
. "$1"
esac
}
find_files each_file "$SHELLSPEC_HELPERDIR/support"
if [ $# -eq 0 ]; then
enum_tasks show_task
else
run_tasks "$@"
fi