diff options
| author | Jeff Carr <[email protected]> | 2025-01-05 01:18:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-05 01:18:47 -0600 |
| commit | 18ee541f89be2e9f9a91c54873da87885e8ffdf5 (patch) | |
| tree | 3abf86866276cf4ebe1775ab7c0f10d129cf7524 /cobol.go | |
| parent | c25a7ea736aa4848de7eb6a5efe6124a87c39deb (diff) | |
'forge dirty' will find and list only dirty repos
Diffstat (limited to 'cobol.go')
| -rw-r--r-- | cobol.go | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -8,7 +8,9 @@ import ( "go.wit.com/log" ) -// ah yes, COBOL. what a throwback. for those that know +// you can replace all of COBOL with this amount of GO + +// ah yes, COBOL. what an ancient throwback. for those that know // then you know exactly what is in this file. For those that don't, here it is: // All this does is output human readable text formatted to be viewable on @@ -34,7 +36,7 @@ func doCobol() { log.DaemonMode(true) // log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type")) - log.Info(standardStart8("repopath", "cur name", "age", "target", "master", "devel", "user", "curver", "repo type")) + log.Info(standardStart8("repopath", "cur br", "age", "target", "master", "devel", "user", "curver", "repo type")) all := me.found.SortByFullPath() for all.Scan() { repo := all.Next() @@ -76,7 +78,7 @@ func standardStart8(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 string) len1 := 40 len2 := 12 len3 := 6 - len4 := 16 + len4 := 12 len5 := 16 len6 := 16 len7 := 16 @@ -103,27 +105,27 @@ func standardStart8(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 string) if len(arg5) > len5 { arg5 = arg5[:len5] } - s += "%-" + fmt.Sprintf("%d", len5) + "s " + s += "%-" + fmt.Sprintf("%d", len5) + "s " if len(arg6) > len6 { arg6 = arg6[:len6] } - s += "%-" + fmt.Sprintf("%d", len6) + "s " + s += "%-" + fmt.Sprintf("%d", len6) + "s " if len(arg7) > len7 { arg7 = arg7[:len7] } - s += "%-" + fmt.Sprintf("%d", len7) + "s " + s += "%-" + fmt.Sprintf("%d", len7) + "s " if len(arg8) > len8 { arg8 = arg8[:len8] } - s += "%-" + fmt.Sprintf("%d", len8) + "s" + s += "%-" + fmt.Sprintf("%d", len8) + "s " if len(arg9) > len9 { arg9 = arg9[:len9] } - s += "%-" + fmt.Sprintf("%d", len9) + "s" + s += "%-" + fmt.Sprintf("%d", len9) + "s " return fmt.Sprintf(s, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) } |
