Tiny CLI for the next 3 Belgian trains between two stations, using the iRail API. No dependencies, pure Go stdlib.
$ choo nord diest
13:52 plat 6 β Diest arr 14:34 direct
14:08 +2 plat 3 β Diest arr 15:09 +3 1 transfer(s)
14:52 plat 6 β Diest arr 15:34 direct
- Green departure time, red
+Ndelay in minutes (after departure and/or arrival time), redCANCELED, yellow transfer count. - Colors auto-disable when output is piped.
- Station names are fuzzy-matched by iRail (
leuven,brussel noord, ...);nord/noordare local aliases for Brussel-Noord.
go install github.com/neocolebunders/choo-cli/cmd/choo@latest
Or from a clone: go install ./cmd/choo. Make sure ~/go/bin is on your PATH.
choo [-n 5] [-t 14:30] [-d tomorrow] <from> <to>
-nβ number of connections to show (default 3)-tβ departure time asHH:MM(default now)-dβ date asDD/MMortomorrow(default today)