From cc606329b7f69d91ba6d3cb1f8c2d933739a4f84 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Fri, 8 Nov 2024 17:17:21 +0100 Subject: [PATCH] just: pull out projectName Signed-off-by: Patrizio Bekerle --- justfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/justfile b/justfile index 6a3db82..3379b8b 100644 --- a/justfile +++ b/justfile @@ -8,27 +8,28 @@ default: # Variables transferDir := `if [ -d "$HOME/NextcloudPrivate/Transfer" ]; then echo "$HOME/NextcloudPrivate/Transfer"; else echo "$HOME/Nextcloud/Transfer"; fi` +projectName := 'qownnotesapi' -# Open a terminal with the qownnotesapi session +# Open a terminal with the project session [group('dev')] term: - zellij --layout term.kdl attach qownnotesapi -c + zellij --layout term.kdl attach {{ projectName }} -c -# Kill the qownnotesapi session +# Kill the project session [group('dev')] term-kill: - zellij delete-session qownnotesapi -f + zellij delete-session {{ projectName }} -f -# Apply the patch to the qownnotesapi repository +# Apply the patch to the project repository [group('patch')] git-apply-patch: - git apply {{ transferDir }}/qownnotesapi.patch + git apply {{ transferDir }}/{{ projectName }}.patch -# Create a patch from the staged changes in the qownnotesapi repository +# Create a patch from the staged changes in the project repository [group('patch')] @git-create-patch: echo "transferDir: {{ transferDir }}" - git diff --no-ext-diff --staged --binary > {{ transferDir }}/qownnotesapi.patch + git diff --no-ext-diff --staged --binary > {{ transferDir }}/{{ projectName }}.patch ls -l1t {{ transferDir }}/ | head -2 # Format all justfiles