summaryrefslogtreecommitdiff
path: root/toolkit/nocui/stdin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-28 07:29:46 -0500
committerJeff Carr <[email protected]>2023-04-28 07:29:46 -0500
commit3516434fbf56ada3724d4c07bf31bb71d0fe5469 (patch)
tree450fe7cc7c12804ed81073add6d61c85ac8eed34 /toolkit/nocui/stdin.go
parenta1deb9845593e211a1ce6fe4a7f88bbe5acd9981 (diff)
allow passing of embed plugin files
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/nocui/stdin.go')
-rw-r--r--toolkit/nocui/stdin.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/nocui/stdin.go b/toolkit/nocui/stdin.go
index ed71206..86ec664 100644
--- a/toolkit/nocui/stdin.go
+++ b/toolkit/nocui/stdin.go
@@ -22,12 +22,16 @@ func simpleStdin() {
case "b":
log(true, "show buttons")
rootNode.showButtons()
+ case "d":
+ var a toolkit.Action
+ a.ActionType = toolkit.EnableDebug
+ callback <- a
case "":
fmt.Println("")
fmt.Println("Enter:")
fmt.Println("'l': list all widgets")
fmt.Println("'b': for buttons")
- fmt.Println("")
+ fmt.Println("'d': enable debugging")
default:
i, _ := strconv.Atoi(s)
log(true, "got input:", i)