summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 01:33:07 -0600
committerJeff Carr <[email protected]>2024-01-18 01:33:07 -0600
commit0659d10509ab24936be08a515a851017e6280d7d (patch)
tree46d12360596807b6174354d4142143899475de5e
parentcbb54585e2cd7f48ed0eeb60cf7b14bde85bfaa5 (diff)
fix pathsv0.1.1
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile4
-rw-r--r--argv.go2
-rw-r--r--config.go10
-rw-r--r--main.go8
4 files changed, 13 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 83c3903..9b8532f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,10 @@ build-and-update:
go build -v -o control-panel-cloudflare
./control-panel-cloudflare
-build:
+goget:
go get -v -x .
+
+build:
go build -v -o control-panel-cloudflare
update:
diff --git a/argv.go b/argv.go
index 6cedc8f..ad6f17d 100644
--- a/argv.go
+++ b/argv.go
@@ -4,7 +4,7 @@ package main
this enables command line options from other packages like 'gui' and 'log'
*/
-import (
+import (
arg "github.com/alexflint/go-arg"
)
diff --git a/config.go b/config.go
index 0069def..fae4988 100644
--- a/config.go
+++ b/config.go
@@ -1,12 +1,12 @@
package main
-import (
- "os"
- "log"
+import (
"bufio"
+ "log"
+ "os"
"strings"
- "go.wit.com/gui/cloudflare"
+ "go.wit.com/lib/gui/cloudflare"
)
var configfile string = ".config/wit/cloudflare"
@@ -49,7 +49,7 @@ func readFileLineByLine(filename string) error {
line := scanner.Text()
parts := strings.Fields(line)
- if (len(parts) < 4) {
+ if len(parts) < 4 {
log.Println("readFileLineByLine() SKIP =", parts)
continue
}
diff --git a/main.go b/main.go
index d342096..13d9680 100644
--- a/main.go
+++ b/main.go
@@ -1,10 +1,10 @@
package main
-import (
- "go.wit.com/log"
+import (
+ "go.wit.com/bug/debugger"
"go.wit.com/gui/gui"
- "go.wit.com/gui/debugger"
- "go.wit.com/gui/cloudflare"
+ "go.wit.com/lib/gui/cloudflare"
+ "go.wit.com/log"
)
var title string = "Cloudflare DNS Control Panel"