world-cup-2022-cli-dashboard

command module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 6 Imported by: 0

README ΒΆ

screenshot

World Cup 2022 CLI Dashboard lint test release

forthebadge forthebadge forthebadge

Features

  • ⚽ Live matches (goals, bookings, substitutions)
  • πŸ—’οΈ Team lineups
  • πŸ“… Scheduled and past matches
  • πŸ“Š Standings

Install

Method 1: Homebrew 🍺

Install:

brew tap cedricblondeau/cedricblondeau
brew install world-cup-2022-cli-dashboard

Run:

world-cup-2022-cli-dashboard
Method 2: Docker 🐳

Build from the main branch:

docker build --no-cache https://github.com/cedricblondeau/world-cup-2022-cli-dashboard.git#main -t world-cup-2022-cli-dashboard

Run it:

docker run -ti -e TZ=America/Toronto world-cup-2022-cli-dashboard

Replace America/Toronto with the desired timezone.

Method 3: Go package

Requirements:

  • Go 1.19+ (with $PATH properly set up)
  • Git
go install github.com/cedricblondeau/world-cup-2022-cli-dashboard@latest
world-cup-2022-cli-dashboard
Method 4: Pre-compiled binaries

Pre-compiled binaries are available on the releases page.

Data

Data can be sourced from:

  1. worldcupjson.net
  2. football-data.org

By default, the dashboard uses worldcupjson.net - which is an awesome free and open source project but with limited availability and accuracy guarantees.

To use football-data.org instead, you'll need to register and get an API token (it's easy and free). Then, start the dashboard with an env variable:

FOOTBALLDATA_API_TOKEN=my_fake_token world-cup-2022-cli-dashboard

Or with Docker:

docker run -ti -e TZ=America/Toronto -e FOOTBALLDATA_API_TOKEN=my_fake_token world-cup-2022-cli-dashboard

Note that the free football-data.org plan comes with less features than worldcupjson.net.

worldcupjson.net football-data.org
Live scores βœ… βœ…
Schedule βœ… βœ…
Standings βœ… βœ…
Bracket βœ… βœ…
Lineups βœ… ❌
Goal scorers βœ… ❌

The data source gets polled every minute.

UI

UI is powered by bubbletea and lipgloss.

For optimal results, it's recommended to use a terminal with:

  • True Color (24-bit) support;
  • at least 102 columns and 35 rows.

LICENSE

MIT

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
ui
nav

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL