In the original script, results are tabulated
ben@optimus:~$ sbt_cli lua
Search results - String: lua, title: False, lang: False, similarto: False
| Snippet ID | Title | Language |
|-----------------------------------------------------------------------|
| 142 | Check if value exists in table | LUA |
| 133 | Connect to HTTPS upstream with lua-resty-http | LUA |
| 101 | Check if variable is numeric | LUA |
| 96 | Urldecode string | LUA |
| 83 | Recursively print table (print_r equivalent) | LUA |
| 40 | Check if variable is table | LUA |
| 26 | Imploding a table | LUA |
| 18 | Trim whitespace from string | LUA |
| 17 | Trim whitespace from beginning of string | LUA |
| 14 | Trim whitespace from end of string | LUA |
| 13 | Split string on Delimiter | LUA |
| 12 | Check if table has element | LUA |
-------------------------------------------------------------------------
We should do the same here
Activity
27-Sep-24 09:40
assigned to @btasker
27-Sep-24 09:57
mentioned in commit 47da29cba6ae1cebcbc8639731758ddfa3c20eb3
Message
feat: create a tabulated output view (utilities/snippets_cli_go#3)
27-Sep-24 09:58
Output from the commit above looks like this
go-pretty is quite flexible, so we can change the table style (and even add colours) if we want.