diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 20:13:43 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 21:04:06 -0500 | 
| commit | 77f95fe0ad5d9916917ca139a7fb788c70e8877a (patch) | |
| tree | 86bf9a6ecfc7b4242a38051feaba4372bffc69d0 | |
| parent | 192234aa6bb9e454961336729f600b6d1915968b (diff) | |
doRepos()
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | doRepos.go | 19 | ||||
| -rw-r--r-- | main.go | 9 | 
3 files changed, 28 insertions, 2 deletions
@@ -5,7 +5,7 @@ VERSION = $(shell git describe --tags)  BUILDTIME = $(shell date +%s)  all: build -	FORGE_VERBOSE=true ./forged clean +	FORGE_VERBOSE=true ./forged patches list  	# FORGE_VERBOSE=true ./forged list  build: goimports diff --git a/doRepos.go b/doRepos.go new file mode 100644 index 0000000..c6fece8 --- /dev/null +++ b/doRepos.go @@ -0,0 +1,19 @@ +package main + +import ( +	"go.wit.com/log" +) + +func doRepos() error { +	if argv.Repos.List != nil { +		return doReposList() +	} + +	return doReposList() +} + +func doReposList() error { +	log.Infof("Repos.Len()=%d\n", me.forge.Repos.Len()) +	// me.forge.Repos.PrintTable() +	return nil +} @@ -36,7 +36,14 @@ func main() {  	}  	if argv.Patch != nil { -		if err := doPatches(); err == nil { +		if err := doPatches(); err != nil { +			badExit(err) +		} +		okExit("") +	} + +	if argv.Repos != nil { +		if err := doRepos(); err != nil {  			badExit(err)  		}  		okExit("")  | 
