diff options
| author | Jeff Carr <[email protected]> | 2025-01-17 03:30:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-17 03:30:43 -0600 |
| commit | e40251c7fd36d464b141f4b3f02c8ed80434f7cf (patch) | |
| tree | 6852c521c4dd73f1f5c4e1c8099ff473d2612906 | |
| parent | 3809663e6e5f88ad37036392592f47f8d5d32f06 (diff) | |
add a flag to show dirty files
| -rw-r--r-- | argv.go | 6 | ||||
| -rw-r--r-- | argvAutoshell.go | 1 |
2 files changed, 6 insertions, 1 deletions
@@ -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"` diff --git a/argvAutoshell.go b/argvAutoshell.go index 3776e39..9648908 100644 --- a/argvAutoshell.go +++ b/argvAutoshell.go @@ -32,6 +32,7 @@ func (args) doBashAuto() { case "patch": fmt.Println("--list --submit --show") case "dirty": + fmt.Println("--show-files") case "user": fmt.Println("--force") case "devel": |
