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 --- toolkit/gocui/newJ.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit/gocui/newJ.go') diff --git a/toolkit/gocui/newJ.go b/toolkit/gocui/newJ.go index 47c7439..3e04cd3 100644 --- a/toolkit/gocui/newJ.go +++ b/toolkit/gocui/newJ.go @@ -20,7 +20,7 @@ var bottomY int = 7 func newJ(g *gocui.Gui) error { // maxX, maxY := g.Size() - name := fmt.Sprintf("jcarr %v test ", idxView) + name := fmt.Sprintf("jcarr %v foo ", idxView) v, err := g.SetView(name, topX, topY, bottomX, bottomY, 0) if err == nil { return err -- cgit v1.2.3