summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-03 14:41:03 -0600
committerJeff Carr <[email protected]>2024-01-03 14:41:03 -0600
commiteb14f1d21fbdde46d8c31ce5dd5927f7798622d6 (patch)
treeeea106e97422935e5f5c9314cb85e4793d237b17
parent5e485f20d9893034eb37d4c92608ee4cb9b57c6a (diff)
use 'gui/debugger'
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile10
-rw-r--r--config.go2
-rw-r--r--go.mod3
-rw-r--r--main.go1
4 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c5947f9..5195337 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
run: build
- ./control-panel-cloudflare
+ ./control-panel-cloudflare --gui-debug
-build-release:
+build-and-update:
go get -v -u -x .
- go build
+ go build -v -o control-panel-cloudflare
./control-panel-cloudflare
build:
- GO111MODULE="off" go get -v -x .
- GO111MODULE="off" go build
+ go get -v -x .
+ go build -v -o control-panel-cloudflare
update:
GO111MODULE="off" go get -v -u -x .
diff --git a/config.go b/config.go
index a3cf226..0069def 100644
--- a/config.go
+++ b/config.go
@@ -6,7 +6,7 @@ import (
"bufio"
"strings"
- "go.wit.com/control-panel-dns/cloudflare"
+ "go.wit.com/gui/cloudflare"
)
var configfile string = ".config/wit/cloudflare"
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..3eda049
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module go.wit.com/control-panels/cloudflare
+
+go 1.21.4
diff --git a/main.go b/main.go
index 7bf7c4a..c8c8f79 100644
--- a/main.go
+++ b/main.go
@@ -25,6 +25,7 @@ func main() {
// draw the cloudflare control panel window
win := cloudflare.MakeCloudflareWindow(myGui)
win.SetText(title)
+ win.Show()
// This is just a optional goroutine to watch that things are alive
gui.Watchdog()