From e40251c7fd36d464b141f4b3f02c8ed80434f7cf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Jan 2025 03:30:43 -0600 Subject: add a flag to show dirty files --- argv.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 96c0f1d..bdc8c43 100644 --- a/argv.go +++ b/argv.go @@ -14,7 +14,7 @@ var argv args type args struct { Checkout *CheckoutCmd `arg:"subcommand:checkout" help:"switch git branches"` Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"` - Dirty *EmptyCmd `arg:"subcommand:dirty" help:"check if your git repos are dirty"` + Dirty *DirtyCmd `arg:"subcommand:dirty" help:"check if your git repos are dirty"` GitReset *EmptyCmd `arg:"subcommand:hard-reset" help:"hard reset your user git branches"` List *FindCmd `arg:"subcommand:list" help:"just show a table of the current state"` Patch *PatchCmd `arg:"subcommand:patch" help:"examine and make patch sets"` @@ -68,6 +68,10 @@ type CheckoutCmd struct { Master *FindCmd `arg:"subcommand:master" help:"git checkout master"` } +type DirtyCmd struct { + Show bool `arg:"--show-files" help:"also list every dirty file"` +} + type FindCmd struct { All bool `arg:"--all" help:"select every repo (the default)"` Mine bool `arg:"--mine" help:"your repos as defined in the forge config"` -- cgit v1.2.3