Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
/ tfl-status Public archive

Check the TFL line status from your shell

Notifications You must be signed in to change notification settings

nitronoid/tfl-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tfl-status

A simple CLI tool for querying and displaying TFL line status in the terminal, written in Rust.

Build

Like most Rust projects, this repo uses Cargo as a build system and package manager.

# Build
cargo build --release

Installation

Again, Cargo handles this for us.

# Install
cargo install --path /path/to/repo
# Uninstall from inside the project directory
cargo uninstall

Usage

Color highlighting is included.

$ tfl-status
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│ Bakerloo            Good Service                                                              │
│ Central             Good Service                                                              │
│ Circle              Good Service                                                              │
│ District            Minor Delays  District Line: Minor delays West Ham to Upminster eastbound │
│                                   due to a person ill on a train earlier at East Ham. GOOD    │
│                                   SERVICE on the rest of the line.                            │
│ DLR                 Good Service                                                              │
│ Hammersmith & City  Good Service                                                              │
│ Jubilee             Good Service                                                              │
│ London Overground   Good Service                                                              │
│ Metropolitan        Good Service                                                              │
│ Northern            Good Service                                                              │
│ Piccadilly          Good Service                                                              │
│ TfL Rail            Good Service                                                              │
│ Victoria            Good Service                                                              │
│ Waterloo & City     Good Service                                                              │
└───────────────────────────────────────────────────────────────────────────────────────────────┘

# ...or if you haven't installed
$ cargo run --release

Example output with colors.

References

I wrote this project for fun and it is based on the bash implementation by smallwat3r A python implementation can be found here