diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 15:18:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 15:18:46 -0600 |
| commit | 4d4aad27e433ca0658379c4cd1f50c26cfdc33dd (patch) | |
| tree | e8c6c9fa43329bbbb185c2990fd1aca1f53585b0 /main.go | |
| parent | f26e5e9980255c74a5fdaa0e89351b5812f460f1 (diff) | |
dump patchsets to the console
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 29 |
1 files changed, 2 insertions, 27 deletions
@@ -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") } |
