add API viewer, mv repl subcommand to api (#41)

This commit is contained in:
T. von Dein
2026-06-17 13:11:09 +02:00
parent 072e949147
commit f1ff361c12
14 changed files with 161829 additions and 267 deletions

View File

@@ -292,6 +292,10 @@ func (data *Table) Addheaders(headers ...string) {
}
}
func (data *Table) AddRow(fields ...string) {
data.Entries = append(data.Entries, fields)
}
// return the length of a string but only visible chars, w/o ansi color escapes
func visibleLen(word string) int {
return len(ansiCtrlSeq.ReplaceAllLiteralString(word, ""))