To use the application you need to set-up Application Default Credentials (ADC) on Google Cloud. In short:
gcloud auth application-default login
Read more about the process here.
gcloud
is available in the nix development shell via:
nix develop -c gcloud auth application-default login
nix run github:toffernator/traveltime
Alternatively, build from source and place the executable in your $PATH
:
go build
mv ./traveltime <SOMEWHERE/IN/YOUR/$PATH>
traveltime calculate london paris --arriveBy 2024-04-25T09:00:00+01:00