diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-06-10 00:07:56 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-06-10 00:07:56 +0200 |
| commit | daeb9127764fc9dd469294f755e277fdfca09a00 (patch) | |
| tree | ec5cd2b83e5f097527eaea985790e7ac49fa95cb /internal/rtree/main.go | |
| parent | 6903a774ecbbd05596adda5e2b5e18d58dd3a8f9 (diff) | |
| download | gofu-daeb9127764fc9dd469294f755e277fdfca09a00.tar.gz | |
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
Diffstat (limited to 'internal/rtree/main.go')
| -rw-r--r-- | internal/rtree/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
