https://github.com/rwxrob/twitch
https://github.com/rwxrob/twitch
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rwxrob/twitch
- Owner: rwxrob
- License: apache-2.0
- Created: 2022-03-25T05:50:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T02:32:34.000Z (over 3 years ago)
- Last Synced: 2024-10-11T01:44:24.053Z (about 1 year ago)
- Language: Go
- Size: 94.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Common Twitch Commands, a Bonzai Branch


[](https://godoc.org/github.com/rwxrob/twitch)
[](LICENSE)
This command is constantly under revision while I work on it. Don't plan
on anything stable until it hits `v1.0`.
## Install
This command can be installed as a standalone program (less preferred)
or composed into a Bonzai command tree (more preferred to avoid conflict
with the official `twitch` executable maintained by the Twitch company)
Standalone
```
go install github.com/rwxrob/twitch/cmd/twitch@latest
```
Composed
```go
package cmds
import (
Z "github.com/rwxrob/bonzai/z"
"github.com/rwxrob/twitch"
)
var Cmd = &bonzai.Cmd{
Name: `cmds`,
Commands: []*bonzai.Cmd{help.Cmd, twitch.Cmd},
}
```
## Tab Completion
To activate bash completion just use the `complete -C` option from your
`.bashrc` or command line. There is no messy sourcing required. All the
completion is done by the program itself.
```
complete -C twitch twitch
```
If you don't have bash or tab completion check use the shortcut
commands instead.
## Embedded Documentation
All documentation (like manual pages) has been embedded into the source
code of the application. See the source or run the program with help to
access it.