From cbd77a324dff83b226723173ee6e7fc608a9798a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nojus=20Gudinavi=C4=8Dius?= Date: Mon, 27 May 2024 13:51:09 +0300 Subject: [PATCH] README: minor adjustments to code blocks --- README.md | 24 +++++++++++------------- go.sum | 1 - 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 14843e7..c650f7c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ 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 ``` @@ -41,7 +41,7 @@ go install github.com/gnojus/wedl@latest Or compile from source: -```bash +``` git clone https://github.com/gnojus/wedl.git cd wedl go build @@ -51,7 +51,7 @@ go build Compile from source: -```sh +```cmd git clone https://github.com/gnojus/wedl.git cd wedl @@ -60,7 +60,6 @@ cd wedl :: Build executable go build - :: Or Build with -output flag go build -o wedl.exe wedl.go ``` @@ -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_size":22344484,"dl_filename":"WeTransfer_Responsible_Business_Report_2020.pdf"} ``` diff --git a/go.sum b/go.sum index 2e17925..75cceba 100644 --- a/go.sum +++ b/go.sum @@ -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=