From 4d4aad27e433ca0658379c4cd1f50c26cfdc33dd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Jan 2025 15:18:46 -0600 Subject: dump patchsets to the console --- main.go | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 992bc5a..b5fc219 100644 --- a/main.go +++ b/main.go @@ -155,34 +155,9 @@ func main() { } if argv.Patch != nil { - if argv.Patch.Submit != "" { - _, err := me.forge.SubmitDevelPatchSet(argv.Patch.Submit) - if err != nil { - badExit(err) - } - okExit("") - } - - if argv.Patch.List != nil { - if psets, err := me.forge.GetPatchesets(); err != nil { - log.Info("Get Patchsets failed", err) - return - } else { - log.Info("got psets len", len(psets.Patchsets)) - all := psets.SortByName() - for all.Scan() { - pset := all.Next() - log.Info("pset name =", pset.Name) - } - } - } - findReposWithPatches() - if me.found.Len() == 0 { - log.Info("you have no patches in your user branches") - okExit("patch list empty") + if err := doPatch(); err != nil { + badExit(err) } - me.forge.PrintHumanTable(me.found) - okExit("patch list") } -- cgit v1.2.3