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
The source files will be fetched and automatically compiled.
The resulting binary file is stored in ~/go/bin
### Known Bugs
Program can crash during terminal resize if compiled with an old version of the go compiler.
### Usage
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) {
cliClearDown()
help := `
to search for a video simply input keywords
to search for a video input keywords
commands:
:[number] [player] select list item (optional: video player)
::[number] select list page
:user [user] show videos of user
:sub show subscriptions
:new show new subscribed videos
:subadd [user] add given or current user
:subdel [user] delete given or current user
:set [player] set default video player
:help show this help
:q quit the program
:<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.
`
fmt.Println(help)
}
......
Markdown is supported
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