Closed akalipetis closed 1 year ago
The clear winner here would be https://github.com/charmbracelet/bubbletea (and its derivative repos)
I wasn't aware of that, looks shinny! ❇️ ✨
Here's what I managed to find out:
promptui
➖ a barely maintained project (the last commit was made more than a year ago)
➖ has problems when working in Windows
survey
➕ simple
➕ full support for windows and posix terminals
➕ all major components included
➖ reading from piped stdin or writing to piped stdout is not supported
➖ young project with more than 20 opened issues labeled as 'bug'
➖ no 'table' component
bubbletea
➕ a mature project that regularly maintained
➕ a lot of different components included
➕ fully documented
➖ too shiny 🙂
Personally speaking, I like how everything looks in survey
, because it looks like you are working with a terminal, not a GUI. But I must admit that bubbletea
has more advantages. It looks like a project we can rely on.
@Vintorez Thanks a lot for the nice review!
I understand that shiny might not be ideal, but it's possible that we can tune-down how shinny it is with better configuration.
Could you please do a quick PoC for the following with both survey
and bubbletea
(if they're possible out of the box, don't implement things that are not possible)?
Also, if you can think other possible question types feel free to include them as well.
Prepared the PR that can be used as PoC - https://github.com/platformsh/platformify/pull/12 You can find more detailed information in the description of the PR.
I used "survey" in hop
, FWIW.
Personally speaking, I like how everything looks in survey, because it looks like you are working with a terminal, not a GUI. But I must admit that bubbletea has more advantages. It looks like a project we can rely on.
Agreed
Information to think about:
Yesterday I decided to look for large projects that use either survey
or bubbletea
.
Below are the lists of projects with more than 14k stars.
And, to be honest, the "survey" list looks more impressive...
Survey:
Bubbletea:
Ok, I think we have a gravitation towards survey
- given that I believe this should be an easy one to swap, let's stick with survey
for now and we'll see if this poses an issue.
This does not block us from using all the bells and whistles from https://charm.sh anyway.
We should find a library to interactively ask the user questions to Platformify their project.
Possible solutions could be: