From 3a91f7cd691d6b5ba5dedeaa596426d08da7f92c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Oct 2025 10:42:55 -0500 Subject: print footer --- doPatch.go | 4 +++- generate.go | 1 + main.go | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doPatch.go b/doPatch.go index 87c8f48..72af28e 100644 --- a/doPatch.go +++ b/doPatch.go @@ -235,11 +235,13 @@ func showWorkRepos() bool { // if no option is given to patch, list out the // repos that have patches ready in them found := findReposWithPatches() + found.SortNamespace() if found.Len() == 0 { log.Info("you currently have no repos with patches") return false } else { - me.forge.PrintDefaultTB(found) + footer := me.forge.PrintDefaultTB(found) + log.Info("repos with patches or unsaved changes:", footer) } return true } diff --git a/generate.go b/generate.go index 2bec892..9c81ddd 100644 --- a/generate.go +++ b/generate.go @@ -8,3 +8,4 @@ package main //go:generate forge dev --generate go.wit.com/lib/protobuf/guipb //go:generate forge dev --generate go.wit.com/lib/config //go:generate forge dev --generate go.wit.com/lib/gui/prep +//go:generate forge dev --generate go.wit.com/lib/protobuf/zoopb diff --git a/main.go b/main.go index b60edec..3de4d3b 100644 --- a/main.go +++ b/main.go @@ -157,7 +157,9 @@ func main() { found := findRepos() if showUrls() { - me.forge.PrintForgedTable(found) + found.SortNamespace() + footer := me.forge.PrintForgedTable(found) + log.Info("repos with patches or unsaved changes:", footer) okExit("") } // print out the repos -- cgit v1.2.3