summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-21 08:32:59 -0600
committerJeff Carr <[email protected]>2024-02-21 08:32:59 -0600
commitdf0ff5af1cd92287f79c7033cde4d339e0d8b628 (patch)
tree9230b0b2cc4d4e776c0a91e50f36c6685f92a764 /main.go
parent42c506c0982ea85d54443a39e4995c44060287df (diff)
purge code for the autotypist
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go32
1 files changed, 10 insertions, 22 deletions
diff --git a/main.go b/main.go
index 2750ec7..13a003e 100644
--- a/main.go
+++ b/main.go
@@ -1,33 +1,27 @@
package main
-import (
- "embed"
+// An app to submit patches for the 30 GO GUI repos
- "go.wit.com/lib/debugger"
+import (
+ "go.wit.com/lib/gadgets"
"go.wit.com/log"
"go.wit.com/gui"
)
-//go:embed resources/*
-var resToolkit embed.FS
-
func main() {
- me = new(autoType)
+ me = new(mainType)
- me.myGui = gui.New()
- me.myGui.InitEmbed(resToolkit)
- me.myGui.Default()
+ me.myGui = gui.New().Default()
- me.autotypistWindow = me.myGui.NewWindow("autotypist: it types faster than you can.")
- me.mainbox = me.autotypistWindow.NewBox("bw hbox", true)
+ me.mainWindow = gadgets.RawBasicWindow("submit & test patchsets")
+ me.mainWindow.Make()
+ me.mainWindow.Show()
+ me.mainbox = me.mainWindow.Box()
vbox1 := me.mainbox.NewVerticalBox("BOX1")
globalDisplayOptions(vbox1)
- docsBox(vbox1)
- if debugger.ArgDebug() {
- debuggerBox(vbox1)
- }
+
// disable the interface while everything is scanned
me.Disable()
@@ -35,8 +29,6 @@ func main() {
globalBuildOptions(vbox2)
me.summary = submitPatchesBox(vbox2)
- globalResetOptions(me.mainbox)
-
me.repos = makeRepoView()
// parse config file and scan for .git repos
@@ -46,10 +38,6 @@ func main() {
// TODO: should not really be necessary directly after init()
me.repos.View.ScanRepositories()
- // process everything on the command line
- // may exit here
- handleCmdLine()
-
// processing is done. update the repo summary box
me.summary.Update()