update-repos/justfile
Thorsten Schubert 3f6bdcf280
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Use sys/unix instead of syscall directly
2023-10-25 13:24:10 +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