Skip to content

Commit

Permalink
just: pull out projectName
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
  • Loading branch information
pbek committed Nov 8, 2024
1 parent 24ae389 commit cc60632
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc60632

Please sign in to comment.