go-prompt
survey
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
-
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
survey
-
Goget: An interactive go module downloader | Looking for contributors | Level: Super Easy
The dropdown is made with https://github.com/AlecAivazis/survey
- Is there a terminal based "dialog" library?
-
Console application with menus
If you want something a little more advanced, check out survey
-
Recursively clone Gitlab Projects - Practice Project
Rather than get too far into the weeds with building a query through that library, it was ok to just query for every repo in the org and use https://github.com/AlecAivazis/survey to let the user filter at the command line. Might or might not be an idea to play with - it was _fun_ to see a couple of strong open source efforts play together /shrug :)
-
Interactive CLI prompts in Go
To create an interactive multi-select prompt we're going to use an awesome survey package:
-
Survey library
I'm coming from the go world, where I loved the survey library. I was wondering, whether rust has a similar one.
-
How do I move the terminal cursor cross-platform?
I am looking for a way to move the terminal cursor in different directions. (like Up(n), Left(n), Right(n), etc.) I could do this with ANSI escape codes, but Windows CMD doesn't handle that well. Unfortunately, I can't find a library that runs well on Windows and Linux. Survey does handle that pretty good, for their interactive CLI functions like dropdowns etc. but I don't want to "steal" their code. Also, their implementation is very customized to fit to the project, which makes it hard to isolate the code for moving the cursor. Does anybody know a light way to do this? (I would also happily take a library suggestion!) Thanks in advance!
-
Kure - CLI password manager
Thank you so much! The library is called Survey (which uses a package called terminal). It also allows you to use 'hjkl' like Vim.
What are some alternatives?
gocui - Minimalist Go package aimed at creating Console User Interfaces.
promptui - Interactive prompt for command-line applications
termui - Golang terminal dashboard
cobra - A Commander for modern Go CLI interactions
Rich Interactive Widgets for Terminal UIs - Terminal UI library with rich, interactive widgets — written in Golang
promptui.
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.
memguard - Secure software enclave for storage of sensitive information in memory.
clui - Command Line User Interface (Console UI inspired by TurboVision)
prompter - golang utility for easy prompting
Git Town - Additional Git commands for easier branch management and support for stacked changes
cursor - 🖱️ Go module to move the terminal cursor in any direction on every operating system.