Commit Briefs

ec8613ae87 mtmn

release: v0.3.1 (master, tags/v0.3.1)


2e86faee84 mtmn

fix: use local timezone


28f4feeb85 mtmn

release: v0.3.0 (tags/v0.3.0)


49a2fdca1c mtmn

config: read token from a file


610cc027f9 mtmn

docs: trim unnecessarily verbose helpers


caa87b66bd mtmn

release: v0.2.0 (tags/v0.2.0)


6f49a05286 mtmn

docs: install instead of build


40cb58189a mtmn

feat: add --all flag and set it to default


f61649b9fb mtmn

cargo: bump deps


723366de89 mtmn

build: streamline release


Branches

Tags

v0.3.1

v0.3.0

v0.2.0

Tree

.build.ymlcommits | blame
.gitignorecommits | blame
Cargo.lockcommits | blame
Cargo.tomlcommits | blame
LICENSEcommits | blame
README.mdcommits | blame
flake.lockcommits | blame
flake.nixcommits | blame
hack/
src/

README.md

# scores
[![builds.sr.ht status](https://builds.sr.ht/~mtmn/scores.svg)](https://builds.sr.ht/~mtmn/scores?)

A command-line tool that displays football scores and league standings from football-data.org.

## Features

* Display upcoming and recent match results
* Show league standings/tables
* Filter matches by team
* Support for multiple leagues (Premier League, Championship, La Liga, Champions League)

## Installation

To install scores, run:

```sh
cargo install --path .
```

## Usage

```sh
scores [OPTIONS]
```

### Options

*   `-h`, `--help`: Print help information.
*   `-s`, `--standings`: Show league standings/table.
*   `-t`, `--token <TOKEN>`: API token from football-data.org (required).
*   `-f`, `--filter <TEAM>`: Filter by team name or abbreviation.
*   `-a`, `--all`: List all matches across every competition (default).
*   `-l`, `--league <LEAGUE>`: League to display.

### Leagues

*   `epl`: Premier League
*   `efl`: Championship
*   `laliga`: La Liga
*   `ucl`: Champions League

### Example

```sh
# List all matches across every competition
scores -t <TOKEN>

# Show upcoming Premier League matches
scores -l epl -t <TOKEN>

# Show Premier League table
scores -s -t <TOKEN>

# List all matches involving Arsenal across every competition
scores -f arsenal -t <TOKEN>

# Show upcoming Arsenal matches in the Premier League
scores -l epl -f arsenal -t <TOKEN>

# Show La Liga standings
scores -s -l laliga -t <TOKEN>

# Show upcoming Champions League matches
scores -l ucl -t <TOKEN>
```