guireleaser runs again
This commit is contained in:
parent
02542bafe8
commit
dc0040f080
|
@ -21,6 +21,7 @@ func (r *Repo) Hide() {
|
||||||
r.endBox.Hide()
|
r.endBox.Hide()
|
||||||
// r.statusButton.Hide()
|
// r.statusButton.Hide()
|
||||||
// r.diffButton.Hide()
|
// r.diffButton.Hide()
|
||||||
|
r.goSumStatus.Hide()
|
||||||
r.hidden = true
|
r.hidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +42,7 @@ func (r *Repo) Show() {
|
||||||
r.endBox.Show()
|
r.endBox.Show()
|
||||||
// r.statusButton.Show()
|
// r.statusButton.Show()
|
||||||
// r.diffButton.Show()
|
// r.diffButton.Show()
|
||||||
|
r.goSumStatus.Show()
|
||||||
r.hidden = false
|
r.hidden = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,9 +140,10 @@ func (r *RepoList) addRepo(grid *gui.Node, path string, master string, devel str
|
||||||
}
|
}
|
||||||
newRepo.goSumStatus = r.blind.NewLabel("in the blind")
|
newRepo.goSumStatus = r.blind.NewLabel("in the blind")
|
||||||
case "guireleaser":
|
case "guireleaser":
|
||||||
newRepo.develVersion = grid.NewLabel("").SetProgName("develVersion")
|
newRepo.develVersion = r.blind.NewLabel("").SetProgName("develVersion")
|
||||||
newRepo.userVersion = grid.NewLabel("").SetProgName("userVersion")
|
newRepo.userVersion = r.blind.NewLabel("").SetProgName("userVersion")
|
||||||
newRepo.dirtyLabel = grid.NewLabel("")
|
newRepo.dirtyLabel = grid.NewLabel("")
|
||||||
|
newRepo.goSumStatus = grid.NewLabel("in the blind")
|
||||||
newRepo.vLabel = grid.NewLabel("").SetProgName("current")
|
newRepo.vLabel = grid.NewLabel("").SetProgName("current")
|
||||||
newRepo.endBox = grid.NewHorizontalBox("HBOX")
|
newRepo.endBox = grid.NewHorizontalBox("HBOX")
|
||||||
newRepo.endBox.NewButton("Configure", func() {
|
newRepo.endBox.NewButton("Configure", func() {
|
||||||
|
@ -168,7 +171,6 @@ func (r *RepoList) addRepo(grid *gui.Node, path string, master string, devel str
|
||||||
newRepo.Status.Build()
|
newRepo.Status.Build()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
newRepo.goSumStatus = r.blind.NewLabel("in the blind")
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
grid.NextRow()
|
grid.NextRow()
|
||||||
|
|
24
common.go
24
common.go
|
@ -16,6 +16,11 @@ func (r *RepoList) Hide() {
|
||||||
r.reposbox.Hide()
|
r.reposbox.Hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *RepoList) FindRepo(path string) *Repo {
|
||||||
|
repo, _ := me.allrepos[path]
|
||||||
|
return repo
|
||||||
|
}
|
||||||
|
|
||||||
func (r *RepoList) AllRepos() []*Repo {
|
func (r *RepoList) AllRepos() []*Repo {
|
||||||
var all []*Repo
|
var all []*Repo
|
||||||
for _, repo := range me.allrepos {
|
for _, repo := range me.allrepos {
|
||||||
|
@ -71,6 +76,25 @@ func (r *Repo) ReadOnly() bool {
|
||||||
return r.Status.ReadOnly()
|
return r.Status.ReadOnly()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Repo) LastTag() string {
|
||||||
|
return r.Status.GetLastTagVersion()
|
||||||
|
}
|
||||||
|
|
||||||
|
// returns the state of the GO go.mod and go.sum files
|
||||||
|
// this is used to tell if they are valid and correctly reflect
|
||||||
|
// the versions of the other GUI packages
|
||||||
|
// at this point in time, there is _NO_ way to be check our
|
||||||
|
// be sure that anything will run with older versions
|
||||||
|
// because this are changing too often at this point
|
||||||
|
// TODO: revisit this in 2025 or 2026
|
||||||
|
func (r *Repo) GoState() string {
|
||||||
|
return r.Status.GetGoSumStatus()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *Repo) SetGoState(s string) {
|
||||||
|
r.Status.SetGoSumStatus(s)
|
||||||
|
}
|
||||||
|
|
||||||
func (r *Repo) IsPerfect() bool {
|
func (r *Repo) IsPerfect() bool {
|
||||||
if r.dirtyLabel.String() == "PERFECT" {
|
if r.dirtyLabel.String() == "PERFECT" {
|
||||||
return true
|
return true
|
||||||
|
|
2
scan.go
2
scan.go
|
@ -14,7 +14,7 @@ func (r *RepoList) SetAutoScan(b bool) {
|
||||||
|
|
||||||
func (r *RepoList) ScanRepositories() (int, string) {
|
func (r *RepoList) ScanRepositories() (int, string) {
|
||||||
var i int
|
var i int
|
||||||
t := timeFunction(func() {
|
t := TimeFunction(func() {
|
||||||
for _, repo := range me.allrepos {
|
for _, repo := range me.allrepos {
|
||||||
i += 1
|
i += 1
|
||||||
repo.NewScan()
|
repo.NewScan()
|
||||||
|
|
|
@ -47,7 +47,7 @@ func (r *RepoList) Watchdog(f func()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// timeFunction takes a function as an argument and returns the execution time.
|
// timeFunction takes a function as an argument and returns the execution time.
|
||||||
func timeFunction(f func()) time.Duration {
|
func TimeFunction(f func()) time.Duration {
|
||||||
startTime := time.Now() // Record the start time
|
startTime := time.Now() // Record the start time
|
||||||
f() // Execute the function
|
f() // Execute the function
|
||||||
return time.Since(startTime) // Calculate the elapsed time
|
return time.Since(startTime) // Calculate the elapsed time
|
||||||
|
|
Loading…
Reference in New Issue