From b410d0fd083ee89eed410cda2123a22cddcd3f44 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 6 Nov 2022 19:57:20 -0600 Subject: Implement a early AddButton() via a golang plugin 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 --- structs.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 2a0493e..bf16758 100644 --- a/structs.go +++ b/structs.go @@ -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"` } -- cgit v1.2.3