Refactor partnumber book catalog storage

This commit is contained in:
Mikhail Chusavitin
2026-03-07 22:10:05 +03:00
parent b2b2f4774c
commit 08de9006ef
8 changed files with 304 additions and 68 deletions

View File

@@ -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"