diff --git a/human.go b/human.go index 57bc47c..50bbd51 100644 --- a/human.go +++ b/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)) -}