adding yaml->json conversion

This commit is contained in:
Yanick Champoux 2022-04-26 11:14:19 -04:00
parent 3dc253e32d
commit 349588a0c6

14
Taskfile.yml Normal file
View File

@ -0,0 +1,14 @@
# https://taskfile.dev
version: "3"
tasks:
schemas: fd -e yml -p ./schemas-yaml -x task schema SCHEMA='{}'
schema:
vars:
DEST:
sh: echo {{.SCHEMA}} | perl -pe's/ya?ml/json/g'
sources: ["{{.SCHEMA}}"]
generates: ["{{.DEST}}"]
cmds: transerialize {{.SCHEMA}} {{.DEST}}