diff options
| author | Jeff Carr <[email protected]> | 2025-01-28 17:35:18 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-28 17:35:18 -0600 |
| commit | d16f4d4d32b47e17b58017bcf2a6e234d720f299 (patch) | |
| tree | e013c31ead3b94f6cde34281242fa116c4b3594e | |
| parent | 51ec39d1579c6bd89d6c5c38a1ff2879c37d3d03 (diff) | |
more argv cleanups
| -rw-r--r-- | argv.go | 6 | ||||
| -rw-r--r-- | argvAutoshell.go | 5 | ||||
| -rw-r--r-- | find.go | 4 |
3 files changed, 8 insertions, 7 deletions
@@ -42,12 +42,12 @@ type ExamineCmd struct { } type CleanCmd struct { - User *EmptyCmd `arg:"subcommand:user" help:"clean the user branches"` + 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:"try harder to delete things. check your patchsets have been saved first."` Examine *ExamineCmd `arg:"subcommand:examine" help:"examine branches"` + Force *EmptyCmd `arg:"subcommand:force" help:"do destructive stuff"` GitReset *EmptyCmd `arg:"subcommand:git-reset" help:"git reset --hard"` - Delete *EmptyCmd `arg:"subcommand:delete" help:"rescan repo"` + User *EmptyCmd `arg:"subcommand:user" help:"clean the user branches"` } type CleanDevelCmd struct { diff --git a/argvAutoshell.go b/argvAutoshell.go index 171f5f7..b97218f 100644 --- a/argvAutoshell.go +++ b/argvAutoshell.go @@ -29,10 +29,7 @@ func (args) doBashAuto() { // me.pp.WriteUsageForSubcommand(os.Stderr, me.pp.SubcommandNames()...) // me.pp.WriteHelpForSubcommand(os.Stderr, me.pp.SubcommandNames()...) me.pp.WriteHelpForSubcommand(os.Stderr, "clean") - fmt.Fprintln(os.Stderr, "") - fmt.Fprintln(os.Stderr, "hello world") - fmt.Fprintln(os.Stderr, "") - fmt.Println("devel user force clean examine git-reset") + fmt.Println("delete devel force examine force git-reset user") case "commit": fmt.Println("--all") case "config": @@ -123,12 +123,16 @@ func findReposWithPatches() { all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() + if repo.GetUserVersion() == "" || repo.GetUserVersion() == "uerr" { + continue + } if repo.IsDirty() { me.found.AppendByGoPath(repo) continue } if repo.GetUserVersion() != repo.GetDevelVersion() { me.found.AppendByGoPath(repo) + continue } } } |
