mv code
This commit is contained in:
parent
23deb2ab40
commit
1c901e921f
28
human.go
28
human.go
|
@ -7,7 +7,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
"go.wit.com/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// makes a human readable thing for standard out.
|
// makes a human readable thing for standard out.
|
||||||
|
@ -39,6 +38,7 @@ func ReportHeader() string {
|
||||||
"STATE")
|
"STATE")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func (v *RepoList) PrintReport(readonly string, onlydirty string, perfect string) {
|
func (v *RepoList) PrintReport(readonly string, onlydirty string, perfect string) {
|
||||||
var count int
|
var count int
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ func (v *RepoList) PrintReport(readonly string, onlydirty string, perfect string
|
||||||
}
|
}
|
||||||
log.Info(fmt.Sprintf("EVERYTHING WORKED repo count = %d", count))
|
log.Info(fmt.Sprintf("EVERYTHING WORKED repo count = %d", count))
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// makes a human readable thing for standard out.
|
// makes a human readable thing for standard out.
|
||||||
func (r *RepoRow) StandardReleaseHeader() string {
|
func (r *RepoRow) StandardReleaseHeader() string {
|
||||||
|
@ -108,28 +109,3 @@ func ReleaseReportHeader() string {
|
||||||
"MASTER", "USER",
|
"MASTER", "USER",
|
||||||
"STATE")
|
"STATE")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *RepoList) PrintReleaseReport(readonly string, perfect string) {
|
|
||||||
var count int
|
|
||||||
|
|
||||||
log.Info(ReleaseReportHeader())
|
|
||||||
|
|
||||||
loop := v.ReposSortByName()
|
|
||||||
for loop.Scan() {
|
|
||||||
repo := loop.Repo()
|
|
||||||
|
|
||||||
if repo.ReadOnly() && (readonly == "true") {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if (repo.State() == "PERFECT") && (perfect == "true") {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if repo.Status.IsReleased() {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
count += 1
|
|
||||||
header := repo.StandardReleaseHeader()
|
|
||||||
log.Info(header)
|
|
||||||
}
|
|
||||||
log.Info(fmt.Sprintf("total repo count = %d", count))
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue