From 36b1b1bfab2d11650e7b28070b04b386f2cfc3cf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 30 Jan 2024 11:34:00 -0600 Subject: [PATCH] can't properly unload this plugin Signed-off-by: Jeff Carr --- action.go | 1 - stdin.go | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/action.go b/action.go index ca8b089..4bbdf1a 100644 --- a/action.go +++ b/action.go @@ -9,7 +9,6 @@ package main import ( "go.wit.com/log" "go.wit.com/widget" - // "go.wit.com/toolkits/tree" ) func doAction(a widget.Action) { diff --git a/stdin.go b/stdin.go index a8897f5..416849f 100644 --- a/stdin.go +++ b/stdin.go @@ -20,6 +20,8 @@ func showOptions() { fmt.Println("'g': load gocui plugin") fmt.Println("'a': load andlabs plugin") fmt.Println("'d': enable debugging") + fmt.Println("'p': panic plugin") + fmt.Println("'q': close plugin") fmt.Println("") fmt.Println("Enter the number of the widget to click:") fmt.Print("Option: ") @@ -53,6 +55,12 @@ func simpleStdin() { me.myTree.SendToolkitLoad("andlabs") case "d": me.myTree.SendEnableDebugger() + case "p": + debug.PrintStack() + me.myTree.SendToolkitPanic() + return + case "q": + return case "": showOptions() default: