This is a CLI tool for tracking KMB bus routes. The codebase is written in Go and uses the Cobra library for handling command-line arguments.
To build the hk-bus-tracker-cli binary, use the following command:
go build -o hk-bus-tracker-cli This command will compile the project and generate a binary named hk-bus-tracker-cli.
-
Build the CLI:
go build -o hk-bus-tracker-cli
-
Run the CLI:
./hk-bus-tracker-cli [command]
Replace
[command]with the specific command you want to run, such aseta.
eta [route]: Fetch ETA for a bus route.