go-prompt
Building powerful interactive prompts in Go, inspired by python-prompt-toolkit. (by c-bata)
Rich Interactive Widgets for Terminal UIs
Terminal UI library with rich, interactive widgets — written in Golang (by rivo)
go-prompt | Rich Interactive Widgets for Terminal UIs | |
---|---|---|
5 | 23 | |
5,190 | 9,809 | |
- | - | |
0.0 | 8.2 | |
2 days ago | 4 days ago | |
Go | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-prompt
Posts with mentions or reviews of go-prompt.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-09.
-
Is there a library that can give python-prompt-toolkit like completion for TUI?
Ref. https://github.com/prompt-toolkit/python-prompt-toolkit and https://github.com/c-bata/go-prompt ?
-
Is there a terminal based "dialog" library?
has some nice options : https://github.com/c-bata/go-prompt seems to have all you want (but may be a bit more than you wish for though.)
-
How can I use stdin while piping data when using promptui?
I think we are drifting into semantics here. The request isnt really about application design/use cases, nor am I am fan of running commands directly from code. If you notice, myapp in the example case is the final command, so interactivity isnt the breaker. The question is far simpler; this is doable in other langs or when using packages like github.com/c-bata/go-prompt
-
Library for developing CLI application with run-time command parsing like a shell
Have you hade a look at https://github.com/c-bata/go-prompt ?
-
Bit (1.0) – a modern Git CLI in Go
Bit uses cobra a little but for the autocomplete it uses https://github.com/c-bata/go-prompt
Rich Interactive Widgets for Terminal UIs
Posts with mentions or reviews of Rich Interactive Widgets for Terminal UIs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-17.
-
What are some good projects in Go for an experienced dev?
I've had fun writing an app with https://github.com/rivo/tview.
-
Picnic-TUI - Where Go and Groceries Create a Command-Line Feast
Spotify-TUI was developed in Rust, therefore I couldn’t simply use the same UI framework. Within Go a popular choice is tview https://github.com/rivo/tview which provides many similar UI widgets which covered all my needs.
-
GoLang — Simplifying Complexity “The Beginning”
. Web backend (with various frameworks available) . Web Assembly (one of them is vugu framework) . Microservices (some frameworks: Go Micro, Go Kit, Gizmo, Kite) . Fragments services (Term mentioned by @jeffotoni in a microservices discussion group) . Lambdas (FaaS example) . Client Server . Terminal applications (using the tview lib) . IoT (some frameworks) . Bots (some here) . Client Applications using Web technology . Desktop using Qt+QML, Native Win Lib (example Qt, Qt widgets, Qml) . Network Applications . Protocol applications . REST Applications . SOAP Applications . GraphQL Applications . RPC Applications . TCP Applications . gRPC Applications . WebSocket Applications . GopherJS (compiles Go to JavaScript)
-
Recommendations on building a simple DSL REPL?
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.
-
Help to find a terminal library
tview is built on top of the tcell library mentioned in another comment. I liked it so much that I forked it as cview.
-
Ramen has reached v0.2.0, the first production-ready version (in my opinion)
It's tview, the same framework underlying awesome k9s project.
- Equivalent to Pythons Rich?
-
WhatsApp in the terminal
A tui client for WhatsApp. My first ever go project!!! As a very slow learner I am really proud of how far I could bullshit my way through it. I used tview and whatsmeow for this.
-
Need a TUI with multiline text input or good interactive CLI-interface style support
After a user request cycle, however, the tview textarea widget is now in active development so stay tuned!
- Best Package for Go Interactive Shell
What are some alternatives?
When comparing go-prompt and Rich Interactive Widgets for Terminal UIs you can also consider the following projects:
gocui - Minimalist Go package aimed at creating Console User Interfaces.
bubbletea - A powerful little TUI framework 🏗
termui - Golang terminal dashboard
pterm - ✨ #PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more 🚀 It's completely configurable and 100% cross-platform compatible.
clui - Command Line User Interface (Console UI inspired by TurboVision)
tcell - Tcell is an alternate terminal package, similar in some ways to termbox, but better in others.
Git Town - Additional Git commands for easier branch management and support for stacked changes
tui-go
Sitemap Generator - Depth controllable Web scraper and Sitemap Generator in Go
go-prompt vs gocui
Rich Interactive Widgets for Terminal UIs vs bubbletea
go-prompt vs termui
Rich Interactive Widgets for Terminal UIs vs termui
go-prompt vs pterm
Rich Interactive Widgets for Terminal UIs vs gocui
go-prompt vs clui
Rich Interactive Widgets for Terminal UIs vs tcell
go-prompt vs Git Town
Rich Interactive Widgets for Terminal UIs vs tui-go
go-prompt vs Sitemap Generator
Rich Interactive Widgets for Terminal UIs vs pterm