From 7880d9df6de1040258bea966f040e12be6205af1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 2 Dec 2023 19:02:51 -0600 Subject: gocui plugin refactor to a *node binary tree rename arg '--gui ' add a cloudflare example fixes since go v1.21 didn't compile anymore due to argv order more place() changes recursive size computation gocui: Major refactor to use the *node binary tree gocui: refactor place() and size() gocui: better place() and spacing (tab, buttons, etc) gocui: better mouse click handling gocui: switch to using tk.gocuiSize & tk.size gocui: event handling cleanups gocui: add window labels work gocui: struct cleanups gocui: duplicate binary tree structs removed gocui: deprecate old children Signed-off-by: Jeff Carr --- structs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 53572f2..b7a38a2 100644 --- a/structs.go +++ b/structs.go @@ -23,9 +23,11 @@ import ( var me guiConfig +var GuiArg GuiArgs + // This struct can be used with the go-arg package type GuiArgs struct { - GuiToolkit []string `arg:"--gui-toolkit" help:"The order to attempt loading plugins [gocui,andlabs,gtk,qt]"` + Gui string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui]"` GuiDebug bool `arg:"--gui-debug" help:"open the GUI debugger"` GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` } -- cgit v1.2.3