summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 10:03:21 -0500
committerJeff Carr <[email protected]>2025-10-03 10:03:21 -0500
commit17565a9f7ec9023856f7ce977b238c9eda91c18a (patch)
treeba04dad4dd24389809291988914d73f0bdd260ea /main.go
parent137fbac44c6bdfd746bd561377b3a28988f15172 (diff)
clone all go.wit.com repos
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.go b/main.go
index f68a334..d7ba3ec 100644
--- a/main.go
+++ b/main.go
@@ -5,6 +5,7 @@ package main
import (
"debug/buildinfo"
+ "embed"
"fmt"
"os"
"path/filepath"
@@ -20,6 +21,9 @@ var BUILDTIME string
// used for shell auto completion
var ARGNAME string = "wit" // todo: get this from $0 ?
+//go:embed resources/*
+var resources embed.FS
+
func main() {
me = new(mainType)
me.once.Do(initMain)
@@ -45,10 +49,8 @@ func main() {
}
if argv.Clone != nil {
- if argv.RepoMap != "" {
- repomap(argv.RepoMap)
- okExit("")
- }
+ doClone()
+ okExit("")
}
if argv.WITCOM {