summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 09:53:15 -0500
committerJeff Carr <[email protected]>2025-10-13 09:53:15 -0500
commitd4b928f7bb8f66afc31a95fa4552b8fd8fba3712 (patch)
tree689a40f652bd2f784eb1e028340282bdb2f5739b /gui.go
parent915ea4f648f8639cb1fc4111fa49ff298ea79441 (diff)
calls back to the apps' main/argv.go but what next?
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go42
1 files changed, 5 insertions, 37 deletions
diff --git a/gui.go b/gui.go
index 8ea20d7..eed96d2 100644
--- a/gui.go
+++ b/gui.go
@@ -2,50 +2,17 @@ package prep
// initializes logging and command line options
-import (
- "os"
-
- "go.wit.com/dev/alexflint/arg"
- "go.wit.com/gui"
- "go.wit.com/lib/fhelp"
- "go.wit.com/log"
-)
-
+/*
var argGui ArgsGui
-/*
-This struct can be used with the go-arg package. These
-are the generic default command line arguments for the 'GUI' package
-*/
+
+// This struct can be used with the go-arg package. These
+// are the generic default command line arguments for the 'GUI' package
type ArgsGui struct {
GuiPlugin string `arg:"--gui" help:"select the plugin (andlabs,gocui,etc)"`
GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"`
}
-/*
-used for command line options.
-This allows you to control the toolkit settings from the command line
-
- --debugger # opens the debugger
- --gui andlabs # loads the GTK toolkit on linux or Cocoa on mac
- --gui gocui # runs your program in the terminal in ncurses-like mode
-*/
-/*
-func ArgToolkit() string {
- return argGui.GuiPlugin
-}
-
- func init() {
- arg.Register(&argGui)
- }
-
- // this should never happen because this is before go-args MustParse()
- if argGui.GuiPluginHack != "" {
- // does os.Exec() and does not return
- gui.TestPluginAndExit()
- }
-*/
-
// after go-args MustParse & user configuration
// the gui package can pull out the final settings and init() the GO Plugin GUI Toolkit
func postMustParse(s string) string {
@@ -105,3 +72,4 @@ func (g *GuiPrep) Start() error {
}
return nil
}
+*/