From 63902ff78264507562b6bc31026aead01f3ae331 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 11 Oct 2025 11:17:10 -0500 Subject: okay now --- argv.go | 1 + doPatch.go | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/argv.go b/argv.go index 2ac11ad..ec60872 100644 --- a/argv.go +++ b/argv.go @@ -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"` } diff --git a/doPatch.go b/doPatch.go index 8e2afbc..ef43095 100644 --- a/doPatch.go +++ b/doPatch.go @@ -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() } -- cgit v1.2.3