added download

This commit is contained in:
Waradu 2024-10-20 20:51:51 +02:00
parent 27c765bce4
commit a452ff1631
No known key found for this signature in database
GPG key ID: F85AAC8BA8B8DAAD
4 changed files with 50 additions and 19 deletions

View file

@ -12,12 +12,19 @@ cargo install to-streamshare
```bash
toss "filepath"
toss "filepath" --chunk-size 100 # set chunk_size to 100
toss "filepath" --server "streamshare.myserver.com" # set server to your server
toss --chunk-size 100 "filepath" # set chunk_size to 100
toss --server "streamshare.myserver.com" "filepath" # set server to your server
```
### Delete
```bash
toss --delete file_identifier/deletion_token
toss --delete "file_identifier/deletion_token"
```
### Download
```bash
toss --download "file_identifier"
toss --download "file_identifier" --path "" # uses current path as default
```