Skip to content

Commit e51c7c0

Browse files
authored
feat: Add doctor task. (#99)
1 parent 055dca2 commit e51c7c0

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.lefthook.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ run = "cog check"
2929
interactive = true
3030
run = "just --timestamp prepare-commit-msg {1}"
3131
[commit-msg.commands.commitzen.env]
32-
LEFTHOOK = 0
32+
LEFTHOOK = "0"
3333

3434
# Validate commit messages
3535
[commit-msg.commands.commitzen]

justfile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ coverage:
2424
clean:
2525
task clean
2626

27+
@doctor:
28+
echo "\n\n=== Just Doctor ===\n\n"
29+
just -l
30+
echo "\n\n=== Taskfile Doctor ===\n\n"
31+
task -l
32+
echo "\n\n=== Pipelight Doctor ===\n\n"
33+
pipelight ls
34+
echo "\n\n=== Lefthook Doctor ===\n\n"
35+
lefthook validate
36+
echo "\n\n=== Prek Doctor ===\n\n"
37+
prek list
38+
echo "\n\n=== Comtrya Doctor ===\n\n"
39+
comtrya -d manifests status
40+
echo "\n\n=== Goji Doctor ===\n\n"
41+
goji check
42+
COUNT=$(cat .goji.json | jq '.types | length') ; echo "\n\nFound $COUNT goji types."
43+
2744
prepare-commit-msg file:
2845
#!/bin/sh
2946
if [ ! -f ".goji.json" ]; then
@@ -43,9 +60,10 @@ lint-commit-msg file:
4360
return 1
4461
fi
4562

46-
# TODO: Add remaining packages listed in README.md
4763
install:
4864
lefthook install
65+
prek install
66+
prek auto-upgrade
4967

5068
help:
5169
task help

0 commit comments

Comments
 (0)