generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
34 lines (30 loc) · 945 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
mod bootc 'variants/bootc/justfile'
mod bluefin 'variants/bluefin/justfile'
import 'just/common.just'
# default recipe to display help information
default:
@just --list
# Check Just Syntax
[group('Just')]
check:
#!/usr/bin/bash
find {{ root-dir }} -type f -name "*.just" | while read -r file; do
echo "Checking syntax: $file"
just --unstable --fmt --check -f $file
done
find {{ root-dir }} -type f -name "justfile" | while read -r file; do
echo "Checking syntax: $file"
just --unstable --fmt --check -f $file
done
# Fix Just Syntax
[group('Just')]
fix:
#!/usr/bin/bash
find {{ root-dir }} -type f -name "*.just" | while read -r file; do
echo "Checking syntax: $file"
just --unstable --fmt -f $file
done
find {{ root-dir }} -type f -name "justfile" | while read -r file; do
echo "Checking syntax: $file"
just --unstable --fmt -f $file
done