From f061bf9730f5243633eb70ce4553577c4ae9e2ef Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 29 Apr 2025 17:49:05 -0500 Subject: add commit --submit=false option --- argv.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 4551c76..fd281b7 100644 --- a/argv.go +++ b/argv.go @@ -17,7 +17,7 @@ var argv args type args struct { Checkout *CheckoutCmd `arg:"subcommand:checkout" help:"switch branches using 'git checkout'"` Clean *CleanCmd `arg:"subcommand:clean" help:"start over at the beginning"` - Commit *EmptyCmd `arg:"subcommand:commit" help:"'git commit' but errors out if on wrong branch"` + Commit *CommitCmd `arg:"subcommand:commit" help:"'git commit' but errors out if on wrong branch"` Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"` Dirty *DirtyCmd `arg:"subcommand:dirty" help:"show repos git says are dirty"` GitFetch *FindCmd `arg:"subcommand:fetch" help:"run 'git fetch master'"` @@ -40,6 +40,10 @@ type args struct { type EmptyCmd struct { } +type CommitCmd struct { + Submit bool `arg:"--submit" default:"true" help:"submit the patches to forge"` +} + type testCmd string type CleanCmd struct { -- cgit v1.2.3