just: Add singular sops update and rotate commands

This commit is contained in:
SebastianStork 2025-09-08 18:19:24 +02:00
parent 93eb233b14
commit ccec1ef833

View file

@ -34,8 +34,14 @@ _sops-do command:
sops-edit path: sops-edit path:
just _sops-do "sops edit {{ path }}" just _sops-do "sops edit {{ path }}"
sops-update: sops-update path:
just _sops-do "sops updatekeys {{ path }}"
sops-update-all:
just _sops-do "find . -type f -name 'secrets.json' -exec sops updatekeys --yes {} \;" just _sops-do "find . -type f -name 'secrets.json' -exec sops updatekeys --yes {} \;"
sops-rotate: sops-rotate path:
just _sops-do "sops rotate --in-place {{ path }}"
sops-rotate-all:
just _sops-do "find . -type f -name 'secrets.json' -exec sops rotate --in-place {} \;" just _sops-do "find . -type f -name 'secrets.json' -exec sops rotate --in-place {} \;"