mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-21 16:52:01 -07:00
There were up to four APS copies (tmp/aps, tmp/aps-spec, tmp/aps-fresh, and a component-local client copy) and the briefing, wrappers, and runners disagreed on which to use. Add ensure-aps.sh (ensure/update/reclone) as the one canonical tmp/aps checkout, point the gherkin-parser wrapper, architect startup, and all three acceptance runners at it, and update the architect cheat-sheet. By specifier.
15 lines
503 B
Bash
Executable File
15 lines
503 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Wrapper for the Babashka APS gherkin-parser task.
|
|
# Delegates to the single canonical APS checkout under <repo-root>/tmp/aps.
|
|
set -euo pipefail
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "usage: gherkin-parser <feature-file> <json-output>" >&2
|
|
exit 2
|
|
fi
|
|
FEATURE_FILE="$(realpath -m "$1")"
|
|
JSON_OUTPUT="$(realpath -m "$2")"
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
APS_DIR="$("$SCRIPT_DIR/ensure-aps.sh")"
|
|
cd "$APS_DIR"
|
|
exec bb gherkin-parser "$FEATURE_FILE" "$JSON_OUTPUT"
|