feat: Implement 'make lock' command for git-crypt
This commit is contained in:
parent
f59fff3a8b
commit
f8f950fd7a
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue