From 1c901e921fa1f5e39c6511bbe5ca82066bd86f49 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 2 Dec 2024 07:00:51 -0600 Subject: mv code --- human.go | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) 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)) -} -- cgit v1.2.3