diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/recursive-getconfig | 16 |
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 |
