diff options
| author | EuAndreh <eu@euandre.org> | 2022-08-12 20:40:24 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2022-08-12 20:40:24 -0300 |
| commit | 0c5766bf44260f4a37cc90e69ca63710178631b3 (patch) | |
| tree | 5e147762b31b200a1d37b63cbf224359dbfc42ce /bin/with-email | |
| parent | etc/guix/home.scm: Add a bunch of packages (diff) | |
| download | dotfiles-0c5766bf44260f4a37cc90e69ca63710178631b3.tar.gz dotfiles-0c5766bf44260f4a37cc90e69ca63710178631b3.tar.xz | |
bin/{with-,}email: Add "Examples" section to help string
Diffstat (limited to 'bin/with-email')
| -rwxr-xr-x | bin/with-email | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/with-email b/bin/with-email index 9d6326b..dc2a022 100755 --- a/bin/with-email +++ b/bin/with-email @@ -17,6 +17,21 @@ help() { -h, --help show this message COMMAND the command to be wrapped + + + Executes COMMAND and send all of its output via email + to eu@euandre.org. + + + Examples: + + Run a script and use the default subject: + + $ with-email -- ./script + + Run a command and use a custom subject: + + $ with-email -s 'CRONJOB' echo 123 EOF } |
