From 349588a0c6076eca1ddd81b80d44872b9f1fd633 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 26 Apr 2022 11:14:19 -0400 Subject: [PATCH] adding yaml->json conversion --- Taskfile.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..6902d24 --- /dev/null +++ b/Taskfile.yml @@ -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}}