#!/usr/bin/env zsh

keyName=${${2:t}%.yaml}_key

keymgr -t ${keyName} > $1
sops --input-type=binary --output-type=binary -e -i $1