diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 10:03:21 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 10:03:21 -0500 |
| commit | 17565a9f7ec9023856f7ce977b238c9eda91c18a (patch) | |
| tree | ba04dad4dd24389809291988914d73f0bdd260ea /main.go | |
| parent | 137fbac44c6bdfd746bd561377b3a28988f15172 (diff) | |
clone all go.wit.com repos
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 { |
