-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upd: Windows install command added. (#8)
* upd: Readme updated. * upd: Readme updated. * upd: .gitignore & build command updated. * upd: Resolve conversations. * upd: Resolve conversations. * upd: Readme updated.
- Loading branch information
1 parent
b69b372
commit dbd6aea
Showing
2 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Build file for the wedl project | ||
*.exe | ||
wedl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,102 @@ | ||
# wedl | ||
|
||
[](https://github.com/gnojus/wedl/actions/workflows/test.yml) | ||
|
||
## Command line utility to download from wetransfer | ||
## Command line utility to download from wetransfer | ||
|
||
Easily download from wetransfer.com in the command line. | ||
|
||
Uses unofficial wetransfer API used when downloading with a browser. | ||
|
||
Written in Go. | ||
|
||
## Usage | ||
``` | ||
|
||
```bash | ||
$ wedl --help | ||
Usage: | ||
wedl [options] <URL> | ||
|
||
Options: | ||
-h --help Show this screen. | ||
-v --version Print version and exit. | ||
-o FILE --output=FILE Output file. Use - for stdout. | ||
-p PATH --path=PATH Downloaded files directory. | ||
-s --silent Silent. Do not output anything to stderr. | ||
-f --force Overwrite files if needed. | ||
-i --info Write download info to stdout and exit. | ||
-h --help Show this screen. | ||
-v --version Print version and exit. | ||
-o FILE --output=FILE Output file. Use - for stdout. | ||
-p PATH --path=PATH Downloaded files directory. | ||
-s --silent Silent. Do not output anything to stderr. | ||
-f --force Overwrite files if needed. | ||
-i --info Write download info to stdout and exit. | ||
``` | ||
## Instaling | ||
Download binaries from [releases](https://github.com/gnojus/wedl/releases). | ||
Download binaries from [releases](https://github.com/gnojus/wedl/releases). | ||
Or compile from source and install with the [Go toolchain](https://go.dev/dl/): | ||
``` | ||
```bash | ||
go install github.com/gnojus/wedl@latest | ||
``` | ||
Or build from a writeable source tree: | ||
``` | ||
### Linux and MacOS | ||
Or compile from source: | ||
```bash | ||
git clone https://github.com/gnojus/wedl.git | ||
cd wedl | ||
go build | ||
``` | ||
### Windows | ||
Compile from source: | ||
```sh | ||
git clone https://github.com/gnojus/wedl.git | ||
cd wedl | ||
|
||
:: Build | ||
|
||
:: Build executable | ||
go build | ||
|
||
|
||
:: Or Build with -output flag | ||
go build -o wedl.exe wedl.go | ||
``` | ||
## Run | ||
### Linux and MacOS | ||
```bash | ||
./wedl --help | ||
``` | ||
### Windows | ||
Run the executable: | ||
```sh | ||
wedl.exe --help | ||
``` | ||
### Usage examples | ||
```sh | ||
:: Help | ||
go run . --help | ||
|
||
:: Standart Download | ||
go run . https://go.wetransfer.com/responsibility | ||
|
||
:: Download to ./test/ directory | ||
go run . -p=test https://we.tl/responsibility | ||
|
||
:: Download to downloaded.zip | ||
go run . -o=downloaded.zip https://we.tl/responsibility | ||
|
||
:: Write download info to stdout | ||
go run . -i https://we.tl/responsibility | ||
|
||
``` |