Skip to content

Kaya-Sem/commandtrein

Repository files navigation

commandtrein

Build

Commandtrein is a command-line interface (CLI) tool designed to access and display timetables and route information for SNCB (Belgian Railways) directly from your terminal.

Features

  • Timetables: retrieve and display the current timetable for any SNCB station.
  • Routes: Get detailed connections and travel times between two SNCB stations.
  • Shortcuts: Configure and use shortcuts for frequently used routes.

commandtrein

Documentation

Installation

Usage

Shell completion

Configuration

Commandtrein uses a YAML configuration file located at ~/.config/commandtrein/config.yaml. This files stores your shortcuts for frequent routes.

Example configuration:

shortcuts:
  work:
    station1: "Brussel-Midi"
    station2: "Antwerpen-Centraal"

Changelog

changelog.md

Roadmap

  • Stylistic Improvements: I appreciate any stylistic advice to enhance the user experience and code quality.
  • Upcoming Features:
    • Filtering station results directly within the CLI.
    • Flags for departure time and date

Acknowledgements

Commandtrein leverages the iRails API, an open-source API for accessing real-time data from SNCB.