From fa70ad1d8ad0b174c9a776f11ab2e1c712d1e5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Signe=20Kirk=20Br=C3=B8db=C3=A6k?= <40836345+signekb@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:57:01 +0200 Subject: [PATCH] feat: add recipe add-function ## Description I'm not sure that this is the best way to go about it - and as we, @lwjohnst86 , talked about we might want to make a tool for tasks like this at some point. But maybe this is fine for now? At least I find this helpful - instead of having to create the function file and corresponding test file by hand. --- justfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/justfile b/justfile index 40b0f67..df6590a 100644 --- a/justfile +++ b/justfile @@ -57,3 +57,8 @@ reset-local: # Build the documentation website using Quarto build-website: docker run --rm -v $(pwd):/site -w /site ghcr.io/quarto-dev/quarto:latest quarto render + +# Add files for a new function (function file and test file) +add-function app part name: + touch ./{{app}}/{{part}}/{{name}}.py + touch ./tests/{{part}}/test_{{name}}.py