mv code
This commit is contained in:
parent
23deb2ab40
commit
1c901e921f
28
human.go
28
human.go
|
@ -7,7 +7,6 @@ import (
|
|||
"time"
|
||||
|
||||
"go.wit.com/lib/gui/shell"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
// makes a human readable thing for standard out.
|
||||
|
@ -39,6 +38,7 @@ func ReportHeader() string {
|
|||
"STATE")
|
||||
}
|
||||
|
||||
/*
|
||||
func (v *RepoList) PrintReport(readonly string, onlydirty string, perfect string) {
|
||||
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))
|
||||
}
|
||||
*/
|
||||
|
||||
// makes a human readable thing for standard out.
|
||||
func (r *RepoRow) StandardReleaseHeader() string {
|
||||
|
@ -108,28 +109,3 @@ func ReleaseReportHeader() string {
|
|||
"MASTER", "USER",
|
||||
"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