promptui
Interactive prompt for command-line applications (by manifoldco)
survey
A golang library for building interactive and accessible prompts with full support for windows and posix terminals. (by AlecAivazis)
promptui | survey | |
---|---|---|
8 | 8 | |
5,913 | 3,973 | |
0.3% | - | |
0.0 | 0.0 | |
12 days ago | 7 months ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" 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.
promptui
Posts with mentions or reviews of promptui.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-31.
-
...and now gh-i to search for issues interactively!
The navigation is dealt with by the promptui framework, so in this respect the extension does not touch/re-defines it. This said, let's move the conversation on GitHub, I am sure we can find a way to make it work :)
- Best interactive cli library?
-
Interactive CLI prompts in Go
View on GitHub
-
Hey guys, why is the character ‘w’ missing?
The fmt.Scan family of functions exist because there are similar functions in C, but they really aren't suitable for any purpose. I would recommend beginners to just avoid them completely because the way they work is endlessly surprising. In this case, the problem you're running into is that Scanln expects a line, but you had a space instead, but honestly, don't try to debug it, just switch to https://github.com/manifoldco/promptui.
-
Building an interactive CLI app with Go, Cobra & promptui
This tutorial will guide us through building an interactive CLI app with Go, Cobra and promptui. We will learn how to prompt the user for input data and persist this data to an SQLite database. Unlike the previous app we built, this experience will feel more like a two way conversation.
-
Tf - A CLI to generate terraform configuration with an interactive prompt
I got into cli applications lately and came across cobra. It was highly intuitive and very much easy to use so I couldn't get enough of it and wanted to create something to make it useful along with promptui.
-
I wanted many SSH logins to be always close at hand, so I made a tool for connecting in just a few keystrokes
It uses this library to create an interactive prompt. Just use the up and down arrows to select the host you want.
- How Does This Cli Tool Accomplish Interactivity
survey
Posts with mentions or reviews of survey.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-16.
-
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?
When comparing promptui and survey you can also consider the following projects:
cobra - A Commander for modern Go CLI interactions
prompter - golang utility for easy prompting
promptui.
interactive-cli-prompts - Code for “Interactive CLI prompts in Go” blog post.
memguard - Secure software enclave for storage of sensitive information in memory.
urfave/cli - A simple, fast, and fun package for building command line apps in Go
cli - GitHub’s official command line tool
cursor - 🖱️ Go module to move the terminal cursor in any direction on every operating system.