Wire rehearsal commands and tagged workflows
This commit is contained in:
@@ -14,6 +14,22 @@ case "$mode" in
|
||||
*) usage ;;
|
||||
esac
|
||||
|
||||
# A diagnostic ref carries its dispatch selector before the tool is available.
|
||||
if [ "$mode" = tag ]; then
|
||||
case "$value" in
|
||||
releasekit-test/*)
|
||||
diagnostic=${value#releasekit-test/}
|
||||
selector=${diagnostic%%/*}
|
||||
attempt=${diagnostic#*/}
|
||||
case "$diagnostic" in */*) ;; *) echo "invalid diagnostic tag" >&2; exit 2 ;; esac
|
||||
case "$attempt" in *[!0-9a-f]*|'') echo "invalid diagnostic attempt" >&2; exit 2 ;; esac
|
||||
[ "${#attempt}" -eq 32 ] && [ -n "$selector" ] || { echo "invalid diagnostic tag" >&2; exit 2; }
|
||||
mode=selector
|
||||
value=$selector
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
script_dir=$(CDPATH= cd "$(dirname "$0")" && pwd)
|
||||
mapping=${RELEASEKIT_MODULE_MAP:-$script_dir/release-modules.tsv}
|
||||
[ -f "$mapping" ] || { echo "module map not found: $mapping" >&2; exit 2; }
|
||||
|
||||
Reference in New Issue
Block a user