Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonny Schäfer
tubus
Commits
a845d20d
Commit
a845d20d
authored
Jan 07, 2016
by
Jonny Schäfer
Browse files
better usage/help overview
parent
5286688d
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a845d20d
...
...
@@ -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.
logic.go
View file @
a845d20d
...
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment