mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:04:31 +00:00
- 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>
34 lines
510 B
Bash
Executable File
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
|