summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 15:03:44 -0500
committerJeff Carr <[email protected]>2025-09-11 15:03:44 -0500
commit127f36ca1f82ca9c1945e08802a49e4f9e30d2b7 (patch)
tree9711d08e3b5d653e95205b0f0a5c431de51bc630 /main.go
parentb05b706d8b48a51275a8dc0c90cd8fafc74d61d1 (diff)
refactor to store info
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 6 insertions, 11 deletions
diff --git a/main.go b/main.go
index 4045b80..32a46c4 100644
--- a/main.go
+++ b/main.go
@@ -43,10 +43,7 @@ func main() {
log.Info("todo: show", me.repo.GetGoPath())
okExit("")
}
- log.Info("todo: show", me.repo.GetNamespace(), me.repo.GetFullPath())
- okExit("")
-
- me.basicWindow = makebasicWindow()
+ log.Info("Namespace:", me.repo.GetNamespace(), "Fullpath:", me.repo.GetFullPath())
// figure out where we are working from
// os.Chdir to that directory
@@ -61,27 +58,25 @@ func main() {
me.goPath = basename
os.Chdir(debpath)
- // scan the repo
- me.cBox.addRepo()
-
// look for a 'config' file in the repo
- if me.cBox.readControlFile() == nil {
+ if readControlFile(me.repo) == nil {
log.Warn("scan worked")
} else {
log.Warn("scan failed")
}
- me.cBox.computeControlValues()
+ computeControlValues(me.repo)
if argv.Gui != nil {
// only load teh toolkit if you get this far
me.myGui.Start() // loads the GUI toolkit
doGui()
- me.basicWindow.Show()
+ win := makebasicWindow()
+ win.Show()
debug()
}
log.Info("go-deb: attempting to build package")
- if ok, err := buildPackage(me.cBox); ok {
+ if ok, err := buildPackage(me.repo); ok {
log.Info("build worked")
} else {
log.Warn("build failed:", err)