Skip to content

Commit 26085e7

Browse files
committed
webpage: adapt just recipes for terminating previous term session
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 520ed3a commit 26085e7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

webpage/justfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
import ".shared/common.just"
66

7+
# Variables
8+
9+
zellijSession := "qownnote-webpage"
10+
711
# By default, run the `--list` command
812
default:
913
@just --list
@@ -27,13 +31,17 @@ open-browser:
2731

2832
# Open a terminal with the qownnote-webpage session
2933
[group('dev')]
30-
term:
31-
zellij --layout term.kdl attach qownnote-webpage -c
34+
term-run:
35+
zellij --layout term.kdl attach {{ zellijSession }} -c
3236

3337
# Kill the qownnote-webpage session
3438
[group('dev')]
3539
term-kill:
36-
zellij delete-session qownnote-webpage -f
40+
-zellij delete-session {{ zellijSession }} -f
41+
42+
# Kill and run a terminal with the qownnote-webpage session
43+
[group('dev')]
44+
term: term-kill term-run
3745

3846
# Build for production
3947
[group('build')]

0 commit comments

Comments
 (0)