update usage, dependencies
This commit is contained in:
parent
7f14ac3221
commit
00504d546d
@ -24,14 +24,20 @@ Usage
|
|||||||
-----
|
-----
|
||||||
|
|
||||||
❯ ~/go/bin/ytui -h
|
❯ ~/go/bin/ytui -h
|
||||||
2022/06/30 10:53:46 Youtube UI
|
2022/08/25 17:43:36 Youtube UI
|
||||||
Usage of /home/balki/go/bin/ytui:
|
Usage of /home/balki/go/bin/ytui:
|
||||||
|
-assetspath string
|
||||||
|
Path where css files are saved and served (default "./assets")
|
||||||
-cachepath string
|
-cachepath string
|
||||||
Path where temporary download files are saved (default "./cache")
|
Path where temporary download files are saved (default "./cache")
|
||||||
-dbpath string
|
-dbpath string
|
||||||
Path where downloaded info is saved (default "./db.json")
|
Path where downloaded info is saved (default "./db.json")
|
||||||
-port int
|
-port int
|
||||||
Port to listen on (default 8080)
|
Port to listen on (default 8080)
|
||||||
|
-saveassets
|
||||||
|
Should the assets be saved in dir, so can be served by web server
|
||||||
|
-title string
|
||||||
|
Title of the page (default "Youtube Downloader")
|
||||||
-videospath string
|
-videospath string
|
||||||
Path where videos are saved (default "./vids")
|
Path where videos are saved (default "./vids")
|
||||||
-videosurl string
|
-videosurl string
|
||||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module gitlab.com/balki/ytui
|
|||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
require golang.org/x/net v0.0.0-20220812174116-3211cb980234
|
require golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c
|
||||||
|
4
go.sum
4
go.sum
@ -1,2 +1,2 @@
|
|||||||
golang.org/x/net v0.0.0-20220812174116-3211cb980234 h1:RDqmgfe7SvlMWoqC3xwQ2blLO3fcWcxMa3eBLRdRW7E=
|
golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c h1:JVAXQ10yGGVbSyoer5VILysz6YKjdNT2bsvlayjqhes=
|
||||||
golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
||||||
|
3
main.go
3
main.go
@ -69,8 +69,7 @@ func main() {
|
|||||||
log.Print("Youtube UI")
|
log.Print("Youtube UI")
|
||||||
log.SetFlags(log.Flags() | log.Lshortfile)
|
log.SetFlags(log.Flags() | log.Lshortfile)
|
||||||
parse()
|
parse()
|
||||||
tmpl := template.New("page")
|
tmpl, err := template.New("page").Parse(page)
|
||||||
tmpl, err := tmpl.Parse(page)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user