From c6188975d2da6c1696c4433f6fce8ae4c9a6ac38 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Apr 2023 08:15:20 -0300 Subject: bin/: Make help string more consistent across several executables --- bin/grun | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bin/grun') diff --git a/bin/grun b/bin/grun index e9cfebe..5bae057 100755 --- a/bin/grun +++ b/bin/grun @@ -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 } -- cgit v1.2.3