-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
62 lines (52 loc) · 930 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
build:
comtrya -d setup -v apply
pipelight trigger --flag pre-commit --attach
pipelight logs -vv
just test
just clean
test:
task test
lint:
task lint
format:
task format
audit:
task audit
clean:
task clean
prepare-commit-msg file:
#!/bin/sh
if [ ! -f ".goji.json" ]; then
goji init --repo
fi
RAWMSG=$(cat {{file}} | grep -v '^[ ]*#')
echo "prepare raw :: $RAWMSG"
goji --no-commit --message "$RAWMSG" > {{file}}
lint-commit-msg file:
#!/bin/sh
RAWMSG=$(cat {{file}} | grep -v '^[ ]*#')
echo "lint raw :: $RAWMSG"
MSG=$(goji check --from-file {{file}})
CHECK=$(echo $MSG | grep '^Error' | wc -l)
if [ "$CHECK" -gt 0 ]; then
return 1
fi
# TODO:
# - cocogitto
# - comtrya
# - hurl
# - git-cliff
# - goji
# - lychee
# - minijinja
# - pipelight
# - task
# - treefmt
# - trivy
# - trufflehog
# - typos
# - venom
install:
lefthook install
help:
task help