adding yaml->json conversion

main
Yanick Champoux 2022-04-26 11:14:19 -04:00
parent 3dc253e32d
commit 349588a0c6
1 changed files with 14 additions and 0 deletions

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}}