adding yaml->json conversion
This commit is contained in:
parent
3dc253e32d
commit
349588a0c6
14
Taskfile.yml
Normal file
14
Taskfile.yml
Normal 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}}
|
Loading…
Reference in New Issue
Block a user