Update examples collection

This commit is contained in:
github-actions[bot]
2025-08-19 09:15:28 +00:00
parent 8bc9f30d87
commit 87d3066428
130 changed files with 21502 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/usr/bin/env python3
import json
import sys
def get_latest(tagfile):
with open(tagfile) as f:
versions = json.load(f)
print(versions['aliases']['latest'])
return 0
def get_hash(tagfile, version):
with open(tagfile) as f:
versions = json.load(f)
print(versions['releases'][version])
return 0
if __name__ == '__main__':
if sys.argv[2] == 'latest':
sys.exit(get_latest(sys.argv[1]))
if sys.argv[2] == 'hash':
sys.exit(get_hash(sys.argv[1], sys.argv[3]))