diff options
| -rw-r--r-- | argv.template.go | 12 | ||||
| -rw-r--r-- | structs.go | 8 | 
2 files changed, 15 insertions, 5 deletions
diff --git a/argv.template.go b/argv.template.go index cd4421d..1808722 100644 --- a/argv.template.go +++ b/argv.template.go @@ -10,6 +10,8 @@ import (  	"go.wit.com/dev/alexflint/arg"  	"go.wit.com/gui" +	"go.wit.com/lib/ENV" +	"go.wit.com/lib/fhelp"  	"go.wit.com/log"  ) @@ -52,9 +54,17 @@ func (args) WriteHelp() error {  	return nil  } +func (args) InitGui() error { +	// panic("got here") +	arg.Register(&gui.ArgvGui) +	// me.gui = gui.PreInit() +	me.myGui = fhelp.Gui() +	return nil +} +  func (args) Exit() {  	gui.UnloadToolkits() -	if me.argv.Verbose() { +	if ENV.Verbose() {  		log.Info("argv.Exit() called", APPNAME+".Exit()")  	}  	// remove this from the template for your app (or make one for youself if you need it) @@ -7,6 +7,7 @@ import (  	"time"  	"go.wit.com/dev/alexflint/arg" +	"go.wit.com/lib/fhelp"  	"go.wit.com/lib/protobuf/argvpb"  	"go.wit.com/lib/protobuf/zoopb"  ) @@ -15,10 +16,9 @@ var me *zoodStruct  // this app's variables  type zoodStruct struct { -	argv *argvpb.Argv // more experiments for bash handling -	pp   *arg.Parser  // for parsing the command line args.  Yay to alexf lint! -	// myGui    *fhelp.GuiPrep // for initializing the GUI toolkits - +	argv         *argvpb.Argv   // more experiments for bash handling +	pp           *arg.Parser    // for parsing the command line args.  Yay to alexf lint! +	myGui        *fhelp.GuiPrep // for initializing the GUI toolkits  	urlbase      string         // the dns name for the zookeeper  	hostname     string         // my hostname  	pollDelay    time.Duration  // how often to report our status  | 
