From 34ac2291bc0d9321b078cf70f81684fc4d14e7e8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 20:43:43 -0500 Subject: make "Fix" subcommand --- argv.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 2979185..07a09f9 100644 --- a/argv.go +++ b/argv.go @@ -28,6 +28,7 @@ type args struct { Show *ShowCmd `arg:"subcommand:show" help:"print out things"` Dev *DevCmd `arg:"subcommand:dev" help:"features under development"` Add *EmptyCmd `arg:"subcommand:add" help:"Scan directores for git repos"` + Fixer *FixCmd `arg:"subcommand:fixer" help:"like in the movie"` All bool `arg:"--all" help:"whatever you are doing, do it all over"` Force bool `arg:"--force" help:"try to strong-arm things"` Verbose bool `arg:"--verbose" help:"show more output than usual"` @@ -58,6 +59,11 @@ type ShowCmd struct { Tag *TagCmd `arg:"subcommand:tag" help:"show git tags"` } +type FixCmd struct { + Urls bool `arg:"--urls" help:"check for changes in repo urls"` + Untracked bool `arg:"--untracked" help:"git untracked file list"` +} + func (ShowCmd) Examples() string { return "forge show dirty\nforge show repos --all" } @@ -93,7 +99,6 @@ type DevCmd struct { DeleteUser bool `arg:"--delete-user" help:"delete all user branches (checks for safety)"` BuildForge bool `arg:"--forge-rebuild" help:"download all the forge sources and rebuild forge"` URL string `arg:"--connect" help:"forge url"` - Untracked bool `arg:"--untracked" help:"git untracked file list"` Prune bool `arg:"--prune" help:"'git fetch --prune' everywhere"` } -- cgit v1.2.3