summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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 {