From daeb9127764fc9dd469294f755e277fdfca09a00 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 10 Jun 2026 00:07:56 +0200 Subject: rtree: add support for multiple URLs per remote This requires changing the index format, which I'm using as an opportunity to: - move from YAML to JSON (so I can maybe kill the YAML parser dependency at some point) - move the index file into standard XDG paths --- internal/rtree/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/rtree/main.go') diff --git a/internal/rtree/main.go b/internal/rtree/main.go index 842a67b..68faa36 100644 --- a/internal/rtree/main.go +++ b/internal/rtree/main.go @@ -139,7 +139,9 @@ func commandRemotes(index *Index) { var items []string for _, repo := range index.Repos { for _, remote := range repo.Remotes { - items = append(items, remote.URL.CompactURL()) + for _, url := range remote.URLs { + items = append(items, url.CompactURL()) + } } } cli.Interface.ShowResultsSorted(items) -- cgit v1.3.1