zagens-cli 0.8.0

Zagens headless CLI + HTTP/SSE runtime sidecar (`zagens`, `zagens-runtime` binaries)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import json, os, sys
errors = []
for f in os.listdir("templates"):
    if f.endswith(".json"):
        try:
            with open(f"templates/{f}", "r", encoding="utf-8") as fh:
                json.load(fh)
            print(f"  OK  {f}")
        except Exception as e:
            errors.append(f)
            print(f"FAIL  {f}: {e}")
if errors:
    print(f"\n{len(errors)} template(s) failed")
    sys.exit(1)
else:
    print(f"\nAll templates valid")