README.md: Add two real examples for upload and download subcommands - transferwee - Download/upload file via wetransfer.com
(HTM) git clone https://github.com/iamleot/transferwee
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 2afafc85334038e6c1b9e6ef8996be58cebed601
(DIR) parent d6c2f12ba0e84b963b1528bf061579665aee00a5
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 4 Jun 2018 10:32:41 +0200
README.md: Add two real examples for upload and download subcommands
Diffstat:
M README.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/README.md b/README.md
@@ -46,6 +46,16 @@ optional arguments:
-t to [to ...] recipient emails
```
+The following example creates an `hello` text file with just `Hello world!` and
+then upload it with the message passed via `-m` option:
+
+```
+% echo 'Hello world!' > hello
+% md5 hello
+MD5 (hello) = 59ca0efa9f5633cb0371bbc0355478d8
+% transferwee upload -m 'Just a text file with the mandatory message...' hello
+https://we.tl/o8mGUXnxyZ
+```
### Download file
@@ -79,6 +89,18 @@ optional arguments:
-g only print the direct link (without downloading it)
```
+The following example download the `hello` text file that was uploaded in the
+previous example for `upload` subcommand. Please note that if any file with the
+same name already exists it will be overwritten!:
+
+```
+% transferwee download https://we.tl/o8mGUXnxyZ
+% cat hello
+Hello world!
+% md5 hello
+MD5 (hello) = 59ca0efa9f5633cb0371bbc0355478d8
+```
+
## Dependencies
transferwee needs [requests](http://python-requests.org/) package.