Our great sponsors
-
Rich Interactive Widgets for Terminal UIs
Terminal UI library with rich, interactive widgets — written in Golang
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
What's the right approach to the user interactivity site? I know bubbletea is all the rage but that's more of a TUI than I want; all I want is a simple line-based interface for the user to input commands.
The jist of what I did: The TUI lib I used was https://github.com/rivo/tview. While technically a TUI, it didn't look like one. Tui gave me components for user input, context-aware output formatting, and configurable hotkeys and command shortcuts. History was just an in-memory string map bound to a hotkey.
I wrote this a long time ago https://github.com/gobs/cmd as Go implementation of "python cmd", for uses similar to what you describe.
Actually at the type I wrote a client for dynamodb (this may have been before awk-sdk-go was avalable) but I have not looked at it in years: https://github.com/raff/dynago/blob/master/dynagosh/dynagosh.go