summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 14:50:39 -0500
committerJeff Carr <[email protected]>2025-10-25 14:50:39 -0500
commit9c2c4a74f3cbdc44219e6259317cdc734ec93e99 (patch)
treeef8d8980b76bfb8fc044974670f86fec7da0c289 /main.go
parent6093077b9b82a9ba742375563bcffb2b9074441e (diff)
builds again
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/main.go b/main.go
index 1d59034..d946cb2 100644
--- a/main.go
+++ b/main.go
@@ -44,11 +44,11 @@ func main() {
var s string
var err error
me = new(mainType)
- me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
+ argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
me.forge, err = forgepb.Init()
if err != nil {
log.Printf("forge failure on Init err=(%v)\n", err)
- me.argv.BadExit("WTF", err)
+ argvpb.BadExit("WTF", err)
}
if env.Verbose() {
env.PrintTable()
@@ -61,17 +61,17 @@ func main() {
// put things to do every time forge runs here
doCoreChecks()
- if me.argv.GetCmd() == "" {
+ if argvpb.GetCmd() == "" {
// no command line arguments were given
// do the default behavior and exit
s, err := doDefaultBehavior()
if err != nil {
- me.argv.BadExit(s, err)
+ argvpb.BadExit(s, err)
}
- me.argv.GoodExit(s)
+ argvpb.GoodExit(s)
}
- log.Info("Starting forge with subcommand:", me.argv.GetCmd())
+ log.Info("Starting forge with subcommand:", argvpb.GetCmd())
s, err = doSubcommand()
// if the gui starts, it doesn't yet go to the end normally
@@ -82,7 +82,7 @@ func main() {
}
// safe exits back to your shell (with timing and toolkit close)
if err != nil {
- me.argv.BadExit(s, err)
+ argvpb.BadExit(s, err)
}
- me.argv.GoodExit(s)
+ argvpb.GoodExit(s)
}