Skip to content

Commit

Permalink
README: minor adjustments to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gnojus committed May 27, 2024
1 parent dbd6aea commit cbd77a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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
```
### Linux and MacOS
Or compile from source:
```bash
```
git clone https://github.com/gnojus/wedl.git
cd wedl
go build
Expand All @@ -51,7 +51,7 @@ go build
Compile from source:
```sh
```cmd
git clone https://github.com/gnojus/wedl.git
cd wedl

Expand All @@ -60,7 +60,6 @@ cd wedl
:: Build executable
go build


:: Or Build with -output flag
go build -o wedl.exe wedl.go
```
Expand All @@ -69,34 +68,33 @@ go build -o wedl.exe wedl.go
### Linux and MacOS
```bash
```
./wedl --help
```
### Windows
Run the executable:
```sh
```
wedl.exe --help
```
### Usage examples
```sh
:: Help
# Help
go run . --help

:: Standart Download
# Standart Download
go run . https://go.wetransfer.com/responsibility

:: Download to ./test/ directory
# Download to ./test/ directory
go run . -p=test https://we.tl/responsibility

:: Download to downloaded.zip
# Download to downloaded.zip
go run . -o=downloaded.zip https://we.tl/responsibility

:: Write download info to stdout
# Write download info to stdout
go run . -i https://we.tl/responsibility
# output: {"dl_url":"<dl_url>","dl_size":22344484,"dl_filename":"WeTransfer_Responsible_Business_Report_2020.pdf"}

```
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOA
github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e h1:w36l2Uw3dRan1K3TyXriXvY+6T56GNmlKGcqiQUJDfM=
golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

0 comments on commit cbd77a3

Please sign in to comment.