diff options
| -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("") |
