summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go29
1 files changed, 2 insertions, 27 deletions
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")
}