Add file picker to rsign.cheat

Also add double-quoting to filename fields
This commit is contained in:
Lily Hannah 2025-04-26 20:14:49 -04:00
parent 84dce5ea64
commit 0b7da15e2c
Signed by: SapphicSakuraFox
SSH key fingerprint: SHA256:eDeo8J1v9taxSQLWX8fHD+Zagr5cU+ExRHmF/Wk5evY

View file

@ -1,18 +1,21 @@
% rsign
# Sign a file with a trusted comment
rsign sign <input_file> -t <trusted_comment>
rsign sign "<input_file>" -t <trusted_comment>
# Verify a file with my public key
rsign verify <input_file> -P <sapphic_public_key>
rsign verify "<input_file>" -P <sapphic_public_key>
# Verify a file with my public key, with a different named signature file
rsign verify <input_file> -P <sapphic_public_key> -x <signature_file>
rsign verify "<input_file>" -P <sapphic_public_key> -x "<signature_file>"
# Verify a file with someone else's public key
rsign verify <input_file> -P <public_key>
rsign verify "<input_file>" -P <public_key>
# Verify a file with someone else's public key, with a different named signature file
rsign verify <input_file> -P <public_key> -x <signature_file>
rsign verify "<input_file>" -P <public_key> -x "<signature_file>"
$ sapphic_public_key: echo RWRGdAWJCSQzseElKbOIcuDvVwxR+oKzsy8FXX3Wsx0I98MA6bTVcGaL
$ input_file: find . -maxdepth 1 -type f | gum choose
$ signature_file: find . -maxdepth 1 -name "*.minisig" -type f | gum choose