summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-02 07:00:51 -0600
committerJeff Carr <[email protected]>2024-12-02 07:00:51 -0600
commit1c901e921fa1f5e39c6511bbe5ca82066bd86f49 (patch)
tree165c9b43e9dba82e3c018f0a7fc5040d39ca07dd
parent23deb2ab407df32e34ee978499153a97e7b07a28 (diff)
-rw-r--r--human.go28
1 files 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))
-}