Commit a845d20d authored by Jonny Schäfer's avatar Jonny Schäfer
Browse files

better usage/help overview

parent 5286688d
...@@ -13,6 +13,26 @@ GOPATH="~/go" go get gitlab.cs.fau.de/since/tubus ...@@ -13,6 +13,26 @@ GOPATH="~/go" go get gitlab.cs.fau.de/since/tubus
The source files will be fetched and automatically compiled. The source files will be fetched and automatically compiled.
The resulting binary file is stored in ~/go/bin The resulting binary file is stored in ~/go/bin
### Known Bugs ### Usage
Program can crash during terminal resize if compiled with an old version of the go compiler.
To search for a video just input realted keywords.
#### Commands
command | description
--- | ---
`:<number> [player]` |select list item (optional: video player/script*)
`::<page_number>` |show the specified page
`:user <username>` |show videos of the given user
`:sub` |show subscriptions
`:subadd <username>` |subscribe to the given or current user
`:subdel <username>` |delete subscription of the given or current user
`:new` |show newest videos of subscribed users
`:set <player>` |set the default video player
`:help` |show this help
`:q` |quit the program
*Scripts placed in the `~/.config/tubus/scripts` directory are preferred
to other executable programs in `$PATH`. The video url will be passed as
first command-line argument.
...@@ -298,22 +298,25 @@ func logicHelp(none string) { ...@@ -298,22 +298,25 @@ func logicHelp(none string) {
cliClearDown() cliClearDown()
help := ` help := `
to search for a video simply input keywords to search for a video input keywords
commands: commands:
:[number] [player] select list item (optional: video player) :<number> [player] select list item (optional: video player/script*)
::[number] select list page ::<page_number> show the specified page
:user [user] show videos of user :user <username> show videos of the given user
:sub show subscriptions :sub show subscriptions
:new show new subscribed videos :subadd <username> subscribe to the given or current user
:subadd [user] add given or current user :subdel <username> delete subscription of the given or current user
:subdel [user] delete given or current user :new show newest videos of subscribed users
:set [player] set default video player :set <player> set the default video player
:help show this help :help show this help
:q quit the program :q quit the program
*Scripts placed in the ~/.config/tubus/scripts directory are preferred
to other executable programs in $PATH. The video url will be passed as
first command-line argument.
` `
fmt.Println(help) fmt.Println(help)
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment