diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 05:39:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 05:39:32 -0500 |
| commit | 309fcffc867f321f02885f809fecac06edf1ed06 (patch) | |
| tree | 4488f8369d3e0e55788215c4cb507f6060336bf6 /argv.go | |
| parent | 2471b1ea4c3fd17cd552bb9933d9e65cc529d8d8 (diff) | |
code to double check remote branches are in sync
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -52,13 +52,8 @@ type CommitCmd struct { type testCmd string type CleanCmd struct { - Delete *EmptyCmd `arg:"subcommand:delete" help:"rescan repo"` - Devel *CleanDevelCmd `arg:"subcommand:devel" help:"clean and verify the devel branches"` - Force *EmptyCmd `arg:"subcommand:force" help:"do destructive stuff"` - GitReset *EmptyCmd `arg:"subcommand:git-reset" help:"git reset --hard"` - Pub *EmptyCmd `arg:"subcommand:pub" help:"clean target version numbers"` - User *EmptyCmd `arg:"subcommand:user" help:"clean the user branches"` - Repo string `arg:"--repo" help:"which repo to look at"` + Verify *EmptyCmd `arg:"subcommand:verify" help:"rescan repo"` + Repo string `arg:"--repo" help:"which repo to look at"` } type CleanDevelCmd struct { @@ -150,8 +145,6 @@ forge -- a tool to manage lots of git repos. forge includes a GUI and TUI. // func DoAutoComplete(argv []string) { - // fmt.Fprintln(os.Stderr, "") // these are for debugging - // fmt.Fprintln(os.Stderr, "in autocomplete:", argv) // these are for debugging switch argv[0] { case "checkout": fmt.Println("devel master user") @@ -160,11 +153,11 @@ func DoAutoComplete(argv []string) { // me.pp.WriteUsageForSubcommand(os.Stderr, me.pp.SubcommandNames()...) // me.pp.WriteHelpForSubcommand(os.Stderr, me.pp.SubcommandNames()...) // me.pp.WriteHelpForSubcommand(os.Stderr, "clean") - fmt.Println("--force") + fmt.Println("--force verify --repo") case "commit": fmt.Println("--all") case "config": - fmt.Println("add fix list debug") + fmt.Println("add fix list") case "dirty": fmt.Println("") case "gui": @@ -196,7 +189,7 @@ func DoAutoComplete(argv []string) { default: if argv[0] == ARGNAME { // list the subcommands here - fmt.Println("help list checkout clean commit dirty debug fetch gui normal merge patch pull") + fmt.Println("help list checkout clean commit dirty fetch gui normal merge patch pull") } } os.Exit(0) |
