summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-01 19:03:55 -0500
committerJeff Carr <[email protected]>2025-07-01 19:03:55 -0500
commit4fc9d038ca3e3caebd711d95fdcd6012d3552ba2 (patch)
tree2073b7a781384abb37edbbef8c263e12da32443c
parent1ea9bdf841cb4eae4cd7b1d96288852e799fbeb2 (diff)
working out testing
-rw-r--r--Makefile3
-rw-r--r--argv.go4
-rw-r--r--argvAutoshell.go2
-rw-r--r--doPull.go12
4 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e993c26..e3a65b6 100644
--- a/Makefile
+++ b/Makefile
@@ -59,4 +59,5 @@ devel:
forge clean devel --force --verbose
pull: install
- forge pull test
+ forge pull dirty
+ forge pull patches
diff --git a/argv.go b/argv.go
index 17e1500..143f53b 100644
--- a/argv.go
+++ b/argv.go
@@ -68,7 +68,9 @@ type PatchCmd struct {
}
type PullCmd struct {
- Test *EmptyCmd `arg:"subcommand:test" help:"list repos that need 'git pull'"`
+ Test *EmptyCmd `arg:"subcommand:test" help:"list repos that need 'git pull'"`
+ Dirty *EmptyCmd `arg:"subcommand:dirty" help:"only check dirty repos"`
+ Patches *EmptyCmd `arg:"subcommand:patches" help:"only check repos with patches"`
}
type ConfigAddCmd struct {
diff --git a/argvAutoshell.go b/argvAutoshell.go
index 823e4be..e812a55 100644
--- a/argvAutoshell.go
+++ b/argvAutoshell.go
@@ -46,7 +46,7 @@ func (args) doBashAuto() {
case "list":
fmt.Println("--full")
case "pull":
- fmt.Println("list --force")
+ fmt.Println("list dirty patches --force")
case "--find":
fmt.Println("foo bar")
case "patch":
diff --git a/doPull.go b/doPull.go
index 35644a6..c700fd2 100644
--- a/doPull.go
+++ b/doPull.go
@@ -48,6 +48,18 @@ func doGitPullNew() error {
return fmt.Errorf("not really 'fetch pull'")
}
+ if argv.GitPull.Dirty != nil {
+ found := findDirty()
+ me.forge.PrintHumanTableFull(found)
+ return nil
+ }
+
+ if argv.GitPull.Patches != nil {
+ found := findReposWithPatches()
+ me.forge.PrintHumanTableFull(found)
+ return nil
+ }
+
if argv.GitPull.Test != nil {
log.Info("list repo's with updates here")
found := doFind()