- Need to know about upcoming train times?
- Use this Rust CLI to do just that!
- Run
git clone https://github.com/itzcodex24/rust-trains-cli train-cli
- Run
cd train-cli
- Run
cargo build --release
- Wanna add it to your path?
- Run
nvim ~/.zshrc
- Add the release to your path:
export PATH="$HOME/path_to_train_cli/target/release/":$PATH
- Done! Refresh the config file:
source ~/.zshrc
- And RUN!
train-cli --from {station} --to {station}
- Simply specify the station name while surrounding it in speech marks
""
train-cli --from "{station}" --to "{station}"