mirror of
https://github.com/YunoHost-Apps/transfersh_ynh.git
synced 2024-09-04 01:35:59 +02:00
Merge branch 'version-2' of https://github.com/YunoHost-Apps/transfersh_ynh into version-2
This commit is contained in:
commit
141ed99bdd
2 changed files with 0 additions and 44 deletions
22
README.md
22
README.md
|
@ -17,7 +17,6 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
|
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
|
||||||
|
|
||||||
Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj (Storj) providers, and local file system (local).
|
Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj (Storj) providers, and local file system (local).
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
@ -37,27 +36,6 @@ Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj
|
||||||
|
|
||||||
![Screenshot of Transfer.sh](./doc/screenshots/transfer.sh-about.jpg)
|
![Screenshot of Transfer.sh](./doc/screenshots/transfer.sh-about.jpg)
|
||||||
|
|
||||||
## Disclaimers / important information
|
|
||||||
|
|
||||||
# Using the shell function
|
|
||||||
|
|
||||||
### Add alias to `.bashrc` or `.zshrc`
|
|
||||||
|
|
||||||
Copy and past this function into your `.bashrc` or `.zshrc` file.
|
|
||||||
Replace `domain.tld` by your transfersh domain
|
|
||||||
|
|
||||||
```
|
|
||||||
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://domain.tld/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://domain.tld/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://domain.tld/$file_name"|tee /dev/null;fi;}
|
|
||||||
```
|
|
||||||
Now you can use transfer function
|
|
||||||
|
|
||||||
```
|
|
||||||
$ transfer hello.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
### How to
|
|
||||||
|
|
||||||
https://github.com/dutchcoders/transfer.sh/blob/main/examples.md
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: <https://transfer.sh/>
|
* Official app website: <https://transfer.sh/>
|
||||||
|
|
22
README_fr.md
22
README_fr.md
|
@ -17,7 +17,6 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
## Vue d’ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
|
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
|
||||||
|
|
||||||
Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj (Storj) providers, and local file system (local).
|
Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj (Storj) providers, and local file system (local).
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
@ -37,27 +36,6 @@ Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj
|
||||||
|
|
||||||
![Capture d’écran de Transfer.sh](./doc/screenshots/transfer.sh-about.jpg)
|
![Capture d’écran de Transfer.sh](./doc/screenshots/transfer.sh-about.jpg)
|
||||||
|
|
||||||
## Avertissements / informations importantes
|
|
||||||
|
|
||||||
# Using the shell function
|
|
||||||
|
|
||||||
### Add alias to `.bashrc` or `.zshrc`
|
|
||||||
|
|
||||||
Copy and past this function into your `.bashrc` or `.zshrc` file.
|
|
||||||
Replace `domain.tld` by your transfersh domain
|
|
||||||
|
|
||||||
```
|
|
||||||
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://domain.tld/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://domain.tld/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://domain.tld/$file_name"|tee /dev/null;fi;}
|
|
||||||
```
|
|
||||||
Now you can use transfer function
|
|
||||||
|
|
||||||
```
|
|
||||||
$ transfer hello.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
### How to
|
|
||||||
|
|
||||||
https://github.com/dutchcoders/transfer.sh/blob/main/examples.md
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l’app : <https://transfer.sh/>
|
* Site officiel de l’app : <https://transfer.sh/>
|
||||||
|
|
Loading…
Reference in a new issue