From 936b2344cd05dd378adcc3eda35de01740fad3b3 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 10 Nov 2023 15:29:32 -0500 Subject: [PATCH] add Taskfile --- Taskfile.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Taskfile.yaml diff --git a/Taskfile.yaml b/Taskfile.yaml new file mode 100644 index 0000000..522a945 --- /dev/null +++ b/Taskfile.yaml @@ -0,0 +1,17 @@ +# https://taskfile.dev + +version: '3' + +vars: + GREETING: Hello, World! + TARGET_BRANCH: main + +tasks: + format: + cmds: + - git diff-ls {{.TARGET_BRANCH}} | grep -e '\.pm$\|\.t$' | xargs -IX perltidy -b X + + default: + cmds: + - echo "{{.GREETING}}" + silent: true