diff options
| author | Jeff Carr <[email protected]> | 2022-11-06 19:57:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-11-06 19:57:20 -0600 |
| commit | b410d0fd083ee89eed410cda2123a22cddcd3f44 (patch) | |
| tree | 3f1a637003629a3ec7d383b5db6beb0df9e5a97c /structs.go | |
| parent | e55fb6675d692e3f44fa67b02b12661e476bd028 (diff) | |
Implement a early AddButton() via a golang pluginv0.4.5
pass a name to gocui.AddButton()
cleaner plugin usage
add the start to golang plugin
plugin stuff in a single file
added a button correctly
andlabs/ui added a button via plugin to gocli
hot diggity!
trying to invoke a gocli plugin function from the andlabs ui
load the plugin
hide more debugging output
turn off all output
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -46,13 +46,13 @@ func ShowDebugValues() { log.Println("\t wit/gui DebugDump =", Config.Options.DebugDump) log.Println("\t wit/gui DebugNode =", Config.Options.DebugNode) log.Println("\t wit/gui DebugTabs =", Config.Options.DebugTabs) -// log.Println("\t wit/gui DebugTable =", Config.Options.DebugTable) -// log.Println("\t wit/gui DebugWindow =", Config.Options.DebugWindow) + log.Println("\t wit/gui DebugPlugin =", Config.Options.DebugPlugin) log.Println("\t wit/gui DebugChange =", Config.Options.DebugChange) log.Println("\t wit/gui DebugToolkit =", toolkit.DebugToolkit) } +// This struct can be used with go-arg type GuiOptions struct { // These are global debugging settings // TODO: move to a standard logging system @@ -60,8 +60,7 @@ type GuiOptions struct { DebugDump bool DebugNode bool DebugTabs bool -// DebugTable bool -// DebugWindow bool + DebugPlugin bool DebugChange bool `help:"debug mouse clicks and keyboard input"` } |
