summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 14:25:48 -0500
committerJeff Carr <[email protected]>2025-10-15 14:25:48 -0500
commit0081c99af507241879cdc62ca4ca0fdc4343d6d6 (patch)
tree210b5d181632ff5c12fa6f2eb71b0829658834dd
parent109134608f6a91103dfdcb060e8c6b9c2469e5b6 (diff)
something. notsurev0.0.38
-rw-r--r--gui.go2
-rw-r--r--questionUser.go8
2 files changed, 8 insertions, 2 deletions
diff --git a/gui.go b/gui.go
index e135a43..6d6e208 100644
--- a/gui.go
+++ b/gui.go
@@ -75,7 +75,7 @@ func postMustParse(s string) string {
var prepGui *GuiPrep
type GuiPrep struct {
- rootn *gui.Node
+ rootn *gui.Node
// hidden bool // don't update the toolkits when it's hidden
// Auto func([]string)
}
diff --git a/questionUser.go b/questionUser.go
index f60ebd7..b3edf70 100644
--- a/questionUser.go
+++ b/questionUser.go
@@ -10,26 +10,32 @@ import (
)
func QuestionUser(msg string) bool {
- log.Info(msg)
+ log.Info("START", msg)
fmt.Fprintf(os.Stdout, "(y)es or (n)o ? ")
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
+ log.Info("QUESTION USER SCAN", msg)
line := scanner.Text()
+ log.Info("QUESTION USER LINE", line)
line = strings.TrimSpace(line)
line = strings.ToLower(line)
switch line {
case "y":
+ log.Info("QUESTION USER Y", msg)
return true
case "n":
+ log.Info("QUESTION USER N", msg)
return false
default:
+ log.Info("QUESTION USER DEFAULT", msg)
if strings.HasPrefix(line, "y") {
return true
}
return false
}
}
+ log.Info("QUESTION USER END", msg)
return false
}