This commit is contained in:
2025-07-07 15:53:04 -05:00
parent a03c4ae345
commit 4763d1be26

7
cli.go
View File

@@ -273,11 +273,16 @@ func (w *Cli) findBestGuess() string {
return "" return ""
} }
func (w *Cli) DoLog(txt string) { func (w *Cli) Log(txt string) {
w.rawLog = append(w.rawLog, txt) w.rawLog = append(w.rawLog, txt)
w.log = append(w.log, h.WrapStringToSlice(txt, w.w-2)...) w.log = append(w.log, h.WrapStringToSlice(txt, w.w-2)...)
} }
func (w *Cli) Clear() {
w.rawLog = []string{}
w.log = []string{}
}
type cliCommand func(args ...string) bool type cliCommand func(args ...string) bool
func (c *cliCommand) findBestGuess(args ...string) string { func (c *cliCommand) findBestGuess(args ...string) string {