diff --git a/README.md b/README.md index 181d2cd..9d6d448 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,12 @@ Click to navigate. #### With Go -> **PS**: the pkg.go.dev registry may have an outdated version. If you encounter bugs or feature disparity, please replace `main` after `@` with the first part of the commit hash, e.g. `github.com/cybardev/ytgo/cmd/ytgo@e819a79`, **OR** try the [Manual installation](#manual) method for the latest updates. +> **Link to package**: [pkg.go.dev/github.com/cybardev/ytgo/v3][gopkg] - Run the following command: ```sh - go install github.com/cybardev/ytgo/cmd/ytgo@main + go install github.com/cybardev/ytgo/v3/cmd/ytgo@latest ``` - Ensure `$GOPATH/bin` is added to `$PATH`. An easy way is to add this line to `~/.profile`: @@ -48,10 +48,14 @@ Click to navigate. export PATH="$(go env GOPATH)/bin:$PATH" ``` +> **PS**: the [pkg.go.dev][gopkg] registry may have an outdated version. If you encounter bugs or feature disparity, please replace `latest` after `@` with `main`, e.g. `github.com/cybardev/ytgo/v3/cmd/ytgo@main`, **OR** try the [Manual installation](#manual) method for the latest updates. + ### Usage **PS**: For simplicity, I will refer to the binary as `ytgo`. +Output of `ytgo -h`: + ```sh Usage of ytgo: -d Display URL only @@ -102,6 +106,7 @@ Usage of ytgo: [ytpy]: https://github.com/cybardev/ytpy +[gopkg]: https://pkg.go.dev/github.com/cybardev/ytgo/v3 [release]: https://github.com/cybardev/ytgo/releases/tag/latest [mpv]: https://github.com/mpv-player/mpv [ytdl]: https://github.com/yt-dlp/yt-dlp diff --git a/cmd/ytgo/yt.go b/cmd/ytgo/yt.go index 2eb6f56..cc35372 100644 --- a/cmd/ytgo/yt.go +++ b/cmd/ytgo/yt.go @@ -7,7 +7,7 @@ import ( "strings" ) -const VERSION string = "v3.0.3" +const VERSION string = "v3.0.4" const ( C_RED string = "\x1b[31m"