2023-12-23 21:58:57 +01:00
|
|
|
build:
|
2024-01-15 15:14:54 +01:00
|
|
|
cd src && go build -o ../immich-exporter.out .
|
2024-01-01 01:43:35 +01:00
|
|
|
|
2023-12-23 21:58:57 +01:00
|
|
|
dev :
|
2024-01-15 15:14:54 +01:00
|
|
|
cd src && go run .
|
2024-01-01 01:43:35 +01:00
|
|
|
|
2023-12-23 21:58:57 +01:00
|
|
|
dev-env :
|
2024-01-15 15:14:54 +01:00
|
|
|
cd src && go run . -e
|
2024-01-01 01:43:35 +01:00
|
|
|
|
2023-12-23 21:58:57 +01:00
|
|
|
format :
|
2024-01-15 15:14:54 +01:00
|
|
|
cd src && test -z $(gofmt -l .)
|
2024-01-01 01:43:35 +01:00
|
|
|
|
2023-12-23 21:58:57 +01:00
|
|
|
lint:
|
2024-01-15 15:14:54 +01:00
|
|
|
docker run --rm -v ./src:/app -w /app golangci/golangci-lint:latest golangci-lint run -v
|
2024-01-01 01:43:35 +01:00
|
|
|
|
2023-12-23 21:58:57 +01:00
|
|
|
test:
|
2024-01-15 15:14:54 +01:00
|
|
|
cd src && go test -v ./tests
|
2024-01-01 01:43:35 +01:00
|
|
|
|
2023-12-23 21:58:57 +01:00
|
|
|
update:
|
2024-01-15 15:14:54 +01:00
|
|
|
cd src && go get -u . && go mod tidy
|