feat: Implement 'make lock' command for git-crypt

This commit is contained in:
Matteo Cherubini 2026-05-09 11:34:20 +02:00
parent f59fff3a8b
commit f8f950fd7a

View file

@ -6,7 +6,7 @@
include config.env
export $(shell sed 's/=.*//' config.env)
.PHONY: setup add-genome status lint clean help
.PHONY: setup add-genome status lint lock help
help:
@echo "Available commands:"
@ -14,6 +14,7 @@ help:
@echo " make add-genome - Register and scaffold a new genome"
@echo " make status - Check submodule and encryption status"
@echo " make lint - Verify schema, privacy flags, and metadata"
@echo " make lock - Lock all encrypted files across all genomes"
lint:
@bash scripts/lint-genomes.sh
@ -34,3 +35,10 @@ status:
@git submodule status
@echo "--- Encryption Status (First 10 files) ---"
@git-crypt status | head -n 10
lock:
@echo "Locking master repository..."
@git-crypt lock 2>/dev/null || true
@echo "Locking all submodules..."
@git submodule foreach 'git-crypt lock 2>/dev/null || true'
@echo "All genomes securely locked."