diff options
| -rw-r--r-- | argv.go | 8 | ||||
| -rw-r--r-- | main.go | 1 | ||||
| -rw-r--r-- | structs.go | 3 |
3 files changed, 8 insertions, 4 deletions
@@ -7,7 +7,9 @@ import ( "os" "go.wit.com/lib/debugger" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/prep" + "go.wit.com/log" ) /* @@ -196,10 +198,12 @@ func (args) Appname() string { return ARGNAME } -func (args) ArgvGui() bool { +func (args) ArgvGui() error { // arg.Register(&argGui) // me.myGui = gui.Init() - return true + log.Info("ArgvGui() started") + me.myGui = fhelp.Gui() // adds the GUI package argv support + return nil } func (args) ArgvDebugger() bool { @@ -31,7 +31,6 @@ func main() { // autocomplete must run before everythingi // any writes before this to STDOUT or STDERR // will cause problems for the user at the command line - me.myGui = prep.Gui() // adds the GUI package argv support me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args // the current forge init process @@ -5,6 +5,7 @@ package main import ( "go.wit.com/gui" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/forgepb" @@ -29,7 +30,7 @@ func myServer() string { type mainType struct { sh *prep.Auto // shell autocomplete forge *forgepb.Forge // for holding the forge protobuf files - myGui *prep.GuiPrep // for initializing the GUI toolkits + myGui *fhelp.GuiPrep // for initializing the GUI toolkits foundPaths []string // stores gopaths to act on (when doing go-clone) configSave bool // if the config file should be saved after finishing urlbase string // base URL |
