summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 14 insertions, 12 deletions
diff --git a/main.go b/main.go
index 843952f..e143d3f 100644
--- a/main.go
+++ b/main.go
@@ -18,12 +18,12 @@ var resources embed.FS
func main() {
me = new(mainType)
- me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
+ argvpb.Init(&argv, APPNAME, BUILDTIME, VERSION) // adds shell auto-complete
me.pb = new(zoopb.Package)
wd, err := os.Getwd()
if err != nil {
- me.argv.BadExit("your current directory does not exist err=", err)
+ argvpb.BadExit("your current directory does not exist err=", err)
}
if argv.Arch == "" {
@@ -33,7 +33,7 @@ func main() {
me.repo, err = gitpb.NewRepo(wd)
if err != nil {
- me.argv.BadExit("is this really a .git directory? err=", err)
+ argvpb.BadExit("is this really a .git directory? err=", err)
}
data, err := os.ReadFile("control")
@@ -68,7 +68,7 @@ func main() {
controlfile := debian.MakeControlFile(me.pb)
log.Info(controlfile)
log.Info("INITIAL PARSE END")
- // me.argv.GoodExit("rewriting this app")
+ // argvpb.GoodExit("rewriting this app")
// build()
if argv.Show != nil {
@@ -103,18 +103,20 @@ func main() {
// computeControlValues(me.repo)
*/
- if me.argv.Gui() {
- // only load teh toolkit if you get this far
- me.myGui.Start() // loads the GUI toolkit
- doGui()
- debug()
- }
+ /*
+ if argvpb.Gui() {
+ // only load teh toolkit if you get this far
+ me.myGui.Start() // loads the GUI toolkit
+ doGui()
+ debug()
+ }
+ */
log.Info("go-deb: attempting to build package")
if ok, err := buildPackage(me.repo); ok {
- me.argv.GoodExit("build worked")
+ argvpb.GoodExit("build worked")
} else {
- me.argv.BadExit("build failed", err)
+ argvpb.BadExit("build failed", err)
}
os.Exit(0)
}