diff options
author | Andinus <andinus@nand.sh> | 2020-08-27 15:22:12 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-08-27 15:22:12 +0530 |
commit | 4460dd221776d809b5a216d9ab2b8d25e2c126ae (patch) | |
tree | eff20d4de7af4096b19904c2f7e79015a597b7c2 | |
parent | 8be914647597f53b23c5839dcdc15083fe09bdf8 (diff) | |
download | leo-4460dd221776d809b5a216d9ab2b8d25e2c126ae.tar.gz |
Document environment variables, add example section
-rw-r--r-- | README | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/README b/README index ad08183..d6db85c 100644 --- a/README +++ b/README @@ -12,7 +12,8 @@ Table of Contents .. 1.1 encrypt/sign .. 1.2 delete .. 1.3 help -2 History +2 Example +3 History Leo is my archival program. It creates tar(1) files from a pre-defined @@ -46,6 +47,16 @@ list. It can encrypt/sign files with gpg2(1). I use this to quickly archive some of my files & copy them to another computer as a backup. + Some options can also be passed through environment variables. That + allows for configuration in shell rc file & the user can run leo + directly without looking at options. + + ━━━━━━━━━━━━━━━━━━━━━━ + encrypt LEO_ENCRYPT + sign LEO_SIGN + delete LEO_DELETE + ━━━━━━━━━━━━━━━━━━━━━━ + 1.1 encrypt/sign ──────────────── @@ -72,7 +83,22 @@ list. It can encrypt/sign files with gpg2(1). Running just `leo' will print help. -2 History +2 Example +═════════ + + ┌──── + │ # This will encrypt, sign & also delete the tar file for documents, + │ # journal, pass & ssh profile. + │ leo --encrypt --sign --delete documents journal pass ssh + │ + │ # This will do the same. You can add these environment variables to + │ # your shell rc & then just run ``leo documents journal ssh pass'' to + │ # do the same. + │ LEO_ENCRYPT=1 LEO_SIGN=1 LEO_DELETE=1 leo documents journal ssh pass + └──── + + +3 History ═════════ This was Leo's initial description: |