From bbf5f79acb6d17239a492effb4e2cdb15ef20579 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 Jan 2025 21:56:43 -0600 Subject: simple shortcut --- main.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0b78a21..d5bde4e 100644 --- a/main.go +++ b/main.go @@ -79,6 +79,10 @@ func main() { } if argv.Clean != nil { + if argv.Clean.Repo != "" { + log.Info("only looking at repo:", argv.Clean.Repo) + okExit("") + } if argv.Clean.Examine != nil { if err := doExamine(); err != nil { badExit(err) @@ -159,11 +163,13 @@ func main() { log.Info(i, line) } } - if argv.Patch.Show != nil { - findReposWithPatches() - me.forge.PrintHumanTable(me.found) - + findReposWithPatches() + if me.found.Len() == 0 { + log.Info("you have no patches in your user branches") + okExit("patch list empty") } + me.forge.PrintHumanTable(me.found) + okExit("patch list") } -- cgit v1.2.3