tursodatabase/turso-cli

`turso db shell` woes because of mismatch between database name and URL

オープン

#606 opened on 2023/08/28

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (50 件のフォーク)github user discovery
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (302 個のスター)
PR merge metrics
 (平均マージ 4h 32m) (30d で 2 merged PRs)

説明

If I create a database with the name hello, the URL starts with hello-penberg making the following error likely:

$ turso db shell hello-penberg 
Error: database hello-penberg not found. List known databases using turso db list

Let's either (1) add an alias for hello-penberg to hello (but tell the user that we're using the alias) or (2) at minimum improve the error message to use word distance algorithm to suggest the most likely name.

Reported by Jan Piotrowski.

コントリビューターガイド