mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-29 06:11:37 +00:00
1.3 KiB
1.3 KiB
Contributing new channels
NOTE: for general setup information before contributing, see Contributing.
Contributing a new channel is as you might expect, pretty straightforward.
- Create a new branch, add and commit your new channel's TOML file under
cable/unix
(orcable/windows
depending on your usecase). - [OPTIONAL] Add a screenshot of the channel in
assets/channels/<os>/
(e.g.assets/channels/unix/my_channel.png
). - Push your commit and create a PR.
- The ci should automatically generate the documentation for your channel and pick up the screenshot if available.
- If 4. fails, you can generate the docs manually by running:
just generate-cable-docs
Examples
git-log
[metadata]
name = "git-log"
description = "A channel to select from git log entries"
requirements = ["git", "delta"]
[source]
command = "git log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --color=always"
output = "{strip_ansi|split: :1}"
ansi = true
[preview]
command = "git show -p --stat --pretty=fuller --color=always '{strip_ansi|split: :1}' | delta"