From eb14f1d21fbdde46d8c31ce5dd5927f7798622d6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 14:41:03 -0600 Subject: [PATCH] use 'gui/debugger' Signed-off-by: Jeff Carr --- Makefile | 10 +++++----- config.go | 2 +- go.mod | 3 +++ main.go | 1 + 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 go.mod 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()