diff options
| -rw-r--r-- | argv.go | 1 | ||||
| -rw-r--r-- | doPatch.go | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -108,6 +108,7 @@ type CleanDevelCmd struct { type PatchCmd struct { Apply bool `arg:"--apply" help:"attempt to apply any new patches"` + Show bool `arg:"--show" help:"show the current patches"` Submit bool `arg:"--resubmit" help:"resubmit your git commits"` } @@ -51,6 +51,13 @@ func doPatch() (string, error) { me.curpatches.Save() } + // just show the table and exit + if argv.Patch.Show { + footer := me.curpatches.PrintTable() + return "all current patches: " + footer, nil + } + + // send them onward again if argv.Patch.Submit { return doPatchSubmit() } |
