Skip to content

Commit c73dcac

Browse files
committed
build: Better justfile with windows support
1 parent b935c7b commit c73dcac

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

justfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
install-pre-commit:
1+
default:
2+
just --list
3+
4+
[unix]
5+
_install-pre-commit:
26
#!/usr/bin/env bash
37
if ( which pre-commit > /dev/null 2>&1 )
48
then
@@ -10,7 +14,12 @@ install-pre-commit:
1014
echo "-----------------------------------------------------------------"
1115
fi
1216

13-
install: install-pre-commit (poetry "install")
17+
[windows]
18+
_install-pre-commit:
19+
#!powershell.exe
20+
Write-Host "Please ensure pre-commit hooks are installed using 'pre-commit install --install-hooks'"
21+
22+
install: (poetry "install") && _install-pre-commit
1423

1524
update: (poetry "install")
1625

0 commit comments

Comments
 (0)