From bef160745a185aeb1e7378a9651216a6adb6bc3b Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Thu, 30 Jun 2022 12:47:17 -0400 Subject: [PATCH] Add docker build command to README --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0209196..b6eb614 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,27 @@ Front end for youtube-dl ------------------------ -Bare minimum zero dependency¹ single binary web app to download youtube videos using youtube-dl. Allows multiple downloads in parallel. Shows title and live download progress. Pull requests welcome. For a more feature full nicer looking app, checkout [YoutubeDL-Material](https://github.com/Tzahi12345/YoutubeDL-Material) +Bare minimum zero dependency¹ single binary web app to download youtube videos using youtube-dl. Allows multiple downloads in parallel. Shows title and live download progress. +Pull requests welcome. For a more feature full nicer looking app, checkout [YoutubeDL-Material](https://github.com/Tzahi12345/YoutubeDL-Material) -¹ Uses `golang.org/x/net` for websockets. It is strictly not part of go standard library. +¹Uses `golang.org/x/net` for websockets. It is strictly not part of go standard library, but still from official go. -Usage ------ +Install +------- ❯ go install gitlab.com/balki/ytui@latest go: downloading gitlab.com/balki/ytui v0.0.0-... +If you don't have and don't want to install go toolchain but have docker, below command gets the binary + + ❯ docker run --rm -v "${PWD}:/op" golang:latest sh -c "go install gitlab.com/balki/ytui@latest && cp -v /go/bin/ytui /op/" + go: downloading gitlab.com/balki/ytui v0.0.0-... + go: downloading golang.org/x/net v0.0.0-... + '/go/bin/ytui' -> '/op/ytui' + ❯ docker rmi golang:latest + +Usage +----- ❯ ~/go/bin/ytui -h 2022/06/30 10:53:46 Youtube UI