2024-02-18 15:09:04 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
// this initializes the repos
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"go.wit.com/lib/gui/repostatus"
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (r *repoWindow) initRepoList() {
|
2024-02-23 11:02:01 -06:00
|
|
|
r.View.InitRepoList(".config/guireleaser")
|
2024-02-18 15:09:04 -06:00
|
|
|
|
|
|
|
log.Info("scanning everything in ~/go/src")
|
|
|
|
for i, path := range repostatus.ListGitDirectories() {
|
|
|
|
// log.Info("addRepo()", i, path)
|
|
|
|
path = strings.TrimPrefix(path, me.goSrcPwd.String())
|
|
|
|
path = strings.Trim(path, "/")
|
|
|
|
log.Info("addRepo()", i, path)
|
2024-02-22 21:10:33 -06:00
|
|
|
r.View.NewRepo(path)
|
2024-02-18 15:09:04 -06:00
|
|
|
}
|
|
|
|
}
|
2024-11-05 01:44:24 -06:00
|
|
|
|
|
|
|
func (r *repoWindow) tmpRepoList() {
|
|
|
|
|
|
|
|
log.Info("scanning everything in ~/go/src")
|
|
|
|
for i, path := range repostatus.ListGitDirectories() {
|
|
|
|
// log.Info("addRepo()", i, path)
|
|
|
|
path = strings.TrimPrefix(path, me.goSrcPwd.String())
|
|
|
|
path = strings.Trim(path, "/")
|
|
|
|
log.Info("addRepo()", i, path)
|
|
|
|
r.View.NewRepo(path)
|
|
|
|
}
|
|
|
|
}
|