summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar klea2026-07-28 09:23:56 +0000
committerGravatar klea2026-07-28 09:23:56 +0000
commit9f5cc9dbd1c03b53641d4ff3a45e2d80884e1b39 (patch)
treec4bb67491d2ef645377eafe0cd9ac1fd5edd23ce
parentpkgs(wikiteam.dokuwiki-dumper): Relax rich (diff)
downloadat-tayich-main.tar.gz
at-tayich-main.tar.bz2
at-tayich-main.zip
bin(recursive-getconfig): add HEAD main
-rwxr-xr-xbin/recursive-getconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/recursive-getconfig b/bin/recursive-getconfig
new file mode 100755
index 0000000..a520832
--- /dev/null
+++ b/bin/recursive-getconfig
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+scriptpath="$(cd "$(dirname "$0")"; pwd -P)"
+commit="$(git -C "${scriptpath}" log --max-count=1 --format=%H)"
+
+for jobid; do
+ property="job:$jobid:config"
+ curl \
+ --silent \
+ --user-agent "at-tayich (commit: $commit)" \
+ 'https://legacy-api.arpa.li/recursive/props?prop='"$property" |
+ jq '
+#map(.)[] |
+.["'"$property"'"] |
+fromjson
+'
+done