summaryrefslogtreecommitdiff
path: root/testGui
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-28 21:03:23 -0600
committerJeff Carr <[email protected]>2024-11-28 21:03:23 -0600
commit8893af7740e7fa27fc5040242a4f805ea6aa163d (patch)
treea3526dda78b87374441984618da1261e717ba209 /testGui
parent931e345895e99e9cb058029763e12562cc6d5fba (diff)
testGui example seems to work
Diffstat (limited to 'testGui')
-rw-r--r--testGui/Makefile3
-rw-r--r--testGui/main.go13
2 files changed, 8 insertions, 8 deletions
diff --git a/testGui/Makefile b/testGui/Makefile
index 24fc00d..74e3039 100644
--- a/testGui/Makefile
+++ b/testGui/Makefile
@@ -8,7 +8,6 @@ build:
reset
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
- ./testGui --no-gui --list
vet:
GO111MODULE=off go vet
@@ -34,7 +33,7 @@ redomod:
GO111MODULE= go mod init
GO111MODULE= go mod tidy
-list-packages:
+list:
./testGui --no-gui --list
pull: build
diff --git a/testGui/main.go b/testGui/main.go
index 4c55f66..e1a877e 100644
--- a/testGui/main.go
+++ b/testGui/main.go
@@ -22,12 +22,6 @@ func main() {
me.forge = forgepb.Init()
me.forge.ConfigPrintTable()
- if err := me.forge.Machine.ConfigLoad(); err != nil {
- log.Warn("zoopb.ConfigLoad() failed", err)
- os.Exit(-1)
- }
- me.forge.Machine.InitWit()
-
// setup the GUI
me.myGui = gui.New()
me.myGui.Default()
@@ -42,6 +36,13 @@ func main() {
rloop := me.repoList.ReposSortByName()
for rloop.Scan() {
repo := rloop.Repo()
+
+ repotype := repo.RepoType()
+ if repotype != "binary" {
+ // we only want to process golang binaries where package == 'main'
+ // log.Info("skipping repo", repo.GoPath(), repotype)
+ continue
+ }
// var cmd []string
var start string
var end string