diff options
Diffstat (limited to 'bin/grun')
-rwxr-xr-x | bin/grun | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -12,6 +12,7 @@ usage() { help() { cat <<-'EOF' + Options: -r RECIPIENT the recipient to encrypt to. Can be provided multiple times for multiple recipients. @@ -23,18 +24,22 @@ help() { FILENAME The GPG-encrypted file to be processed. If it doesn't exist yet, it will be created. + + Edit the encripted FILENAME in a pipeline, using COMMAND to + modify the content. If COMMAND emits a non-zero return code, + the file is left unmodified. + + Examples: Edit "secrets.txt.gpg" using `vipe` and the default recipient: $ grun secrets.txt.gpg -- vipe + Delete lines containing "TODO" in todos.gpg for specific keys: $ grun -r ABC123DEF321 todos.gpg -- sed '/TODO/d' - - If COMMAND emits a non-zero return code, the file is left - unmodified. EOF } |