summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--argv.go1
-rw-r--r--main.go6
3 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e30cb01..4990228 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
-all: install
- @echo make restart # remove the repos.pb file
- @echo make private # only the private ones
- @echo make mine # just show my repos
- @echo make pull # run git pull on every repo
+all:
+ make private
+ @echo "make restart # remove the repos.pb file"
+ @echo "make private # only the private ones"
+ @echo "make mine # just show my repos"
+ @echo "make pull # run git pull on every repo"
vet:
@GO111MODULE=off go vet
@@ -40,7 +41,7 @@ private: install
fix: install
forge --fix --find-all
-all: install
+list-all: install
forge --find-all
git-reset: install
diff --git a/argv.go b/argv.go
index d731903..66a7393 100644
--- a/argv.go
+++ b/argv.go
@@ -28,6 +28,7 @@ type args struct {
DryRun bool `arg:"--dry-run" help:"show what would be run"`
Fix bool `arg:"--fix" help:"fix config, save config & exit"`
URL string `arg:"--url" default:"http://go.wit.com/" help:"base url"`
+ Delete string `arg:"--delete" help:"delete this repo"`
}
func (args) Version() string {
diff --git a/main.go b/main.go
index 2a5bb0f..92704e0 100644
--- a/main.go
+++ b/main.go
@@ -42,6 +42,12 @@ func main() {
configSave = false
}
+ if argv.Delete != "" {
+ me.forge.DeleteByGoPath(argv.Delete)
+ me.forge.SetConfigSave(true)
+ okExit("")
+ }
+
/*
// var count int
all := me.forge.Repos.SortByFullPath()