Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.3 KB

readme.md

File metadata and controls

52 lines (37 loc) · 1.3 KB

SVT Text CLI

Read Swedish news from SVT Text in the terminal. Using the SVT Text API (https://www.svt.se/text-tv/api).

Example

Interactive mode with colors

$ svttext --colors --interactive

Example

Install

Find the binary for your OS under releases. Download and run the binary in your terminal of choice.

Usage

$ svttext --help
Usage: svttext [OPTION]... [PAGE]
Read news from SVT Text

Example: svttext --colors 100

Options:
  -colors
        colorize the output
  -interactive
        start interactive mode
        use arrow keys to navigate pages
        or enter page number to go to page
  -version
        prints svttext version

Make an alias if you like. Bash example, place in your .bashrc:

alias svt="svttext --colors --interactive"

TODO

  • Add SVT logo? The "TV" version have a logo at the start page. Maybe add this as ascii art?
  • Release using homebrew tap? https://appliedgo.net/release2/
  • Sign releases? https://appliedgo.net/release/
  • Make release, github action
  • Colorize output, add flag --color
  • Interactive mode, add a flag --interactive and don't exit the cli instead give options like enter new page, navigate with arrow keys, vi key binding etc.