-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
39 lines (31 loc) · 932 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Use `just <recipe>` to run a recipe
# https://just.systems/man/en/
# By default, run the `--list` command
default:
@just --list
# Variables
zellijSession := "dispatch-app"
# Open a terminal for development
[group('dev')]
term-run:
zellij --layout term.kdl attach {{ zellijSession }} -c
# Kill the development session
[group('dev')]
term-kill:
-zellij delete-session {{ zellijSession }} -f
# Kill and run a terminal with the development session
[group('dev')]
term: term-kill term-run
# Open a browser with the application
[group('dev')]
open-browser:
open http://localhost:8001
# Format all justfiles
[group('linter')]
just-format:
#!/usr/bin/env bash
# Find all files named "justfile" recursively and run just --fmt --unstable on them
find . -type f -name "justfile" -print0 | while IFS= read -r -d '' file; do
echo "Formatting $file"
just --fmt --unstable -f "$file"
done