tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
215 stars 35 forks source link

Completion does not work after introduction of turso client #161

Closed haaawk closed 1 year ago

haaawk commented 1 year ago

It errors out with failed\ to\ get\ database\ listing:\ 401\ Unauthorized even though db list works just fine so it's not the issue of missing auth token

haaawk commented 1 year ago

It is possible that the issue is only when using TURSO_API_BASEURL. Completions don't seem to pick it up.

haaawk commented 1 year ago

Exporting TURSO_API_BASEURL="http://127.0.0.1:8080" solves the problem. The lesson from this is that `TURSO_API_BASEURL="http://127.0.0.1:8080" ./turso " won't have a working autocompletion.