mullvad-best-server/justfile
Thorsten Schubert 228405cac7
All checks were successful
/ build (push) Successful in 12s
Establish basic workflow
2024-04-19 02:08:56 +02:00

25 lines
577 B
Makefile

default:
just build
help:
just --list
build:
go build -ldflags="-s -w -X main.VERSION=$(git describe --tags --long)" .
watch:
#!/usr/bin/env bash
while :; do
inotifywait -q -e create,modify,delete --exclude '\.git' --recursive {{justfile_directory()}} \
| while read -r directory events filename; do
if [[ $events =~ "ISDIR" ]]; then
break
elif [[ $filename =~ \.go$ ]]; then
printf "[%s]: %s%s\n" "$events" "$directory" "$filename"
just build
fi
done
done
clean:
git clean -fxd