11 releases (4 breaking)

0.5.3 Feb 14, 2024
0.5.2 Feb 13, 2024
0.5.0 Jan 25, 2024
0.4.2 Jan 24, 2024
0.1.1 Oct 28, 2023

#1296 in Command line utilities

Download history 6/week @ 2024-01-20 103/week @ 2024-02-10 29/week @ 2024-02-17 27/week @ 2024-02-24 3/week @ 2024-03-02 4/week @ 2024-03-09 38/week @ 2024-03-30 22/week @ 2024-04-06 1/week @ 2024-04-13

61 downloads per month

MIT license

25KB
548 lines

━━━━━━ ❖ ━━━━━━



❖ TheSeptaTimes.rs

TheSeptaTimes.rs is an easy-to-use commandline utility to fetch information about regional SEPTA trains

septa gif

❖ Installation

Shell

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dotzenith/TheSeptaTimes.rs/releases/latest/download/the-septa-times-installer.sh | sh

Brew

brew tap dotzenith/tap
brew install the-septa-times

Powershell

irm https://github.com/dotzenith/TheSeptaTimes.rs/releases/latest/download/the-septa-times-installer.ps1 | iex

Cargo

cargo install the-septa-times

Binaries

Pre-Compiled binaries for linux, mac, and windows are available in Releases

Source

  • First, install rust
git clone https://github.com/dotzenith/TheSeptaTimes.rs.git
cd TheSeptaTimes.rs
cargo build --release
./target/release/tst

❖ Usage

Usage: tst <COMMAND>

Commands:
  next      Search for the next train going from an origin to a destination
  arrivals  Find the next arrivals at a given train station
  train     Track a given train
  stations  Get all valid station names
  refresh   Refresh the cache for station names
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Get times for the next two trains that go from a given train station to another:

tst next '30th Street Station' 'North Philadelphia'

Since tst uses fuzzy matching, you can also do:

tst next 'suburban' '30th'

List the next 6 arrivals at a given train station:

tst arrivals '30th Street Station' --count 6

Take a look at any given train's schedule using the train number:

tst train 9374

Get all valid train station names:

tst stations

Refresh the cache for station names:

tst refresh

❖ What's New?

0.5.3 - use rustls for reqwest


Dependencies

~8–24MB
~347K SLoC