Refactor partnumber book catalog storage
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: build build-release clean test run version
|
||||
.PHONY: build build-release clean test run version backup-db
|
||||
|
||||
# Get version from git
|
||||
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
|
||||
@@ -63,6 +63,10 @@ test:
|
||||
run:
|
||||
go run ./cmd/pfs
|
||||
|
||||
# Create MariaDB backup using the current config.yaml
|
||||
backup-db:
|
||||
go run ./cmd/dbbackup
|
||||
|
||||
# Run with auto-restart (requires entr: brew install entr)
|
||||
watch:
|
||||
find . -name '*.go' | entr -r go run ./cmd/pfs
|
||||
@@ -90,6 +94,7 @@ help:
|
||||
@echo " clean Remove build artifacts"
|
||||
@echo " test Run tests"
|
||||
@echo " run Run development server"
|
||||
@echo " backup-db Create MariaDB backup from current config"
|
||||
@echo " watch Run with auto-restart (requires entr)"
|
||||
@echo " deps Install/update dependencies"
|
||||
@echo " help Show this help"
|
||||
|
||||
Reference in New Issue
Block a user