timetrace
timetrace copied to clipboard
Migrate to `promptui` (or a more interactive cli)
Just a suggestion, we could move to use a more interactive cli library. This might be useful for example where you can run timetrace start
without arguments and you can use arrow keys to select the project you would like to start.
What do you think? I can come up with a proof of concept first before we decide.
@dominikbraun what do you think?
Not a bad idea for sure. @aligator recently suggested using bubbletea - maybe we could compare the two.
@dominikbraun oooo bubbletea looks good too. best way to compare imo is a PoC for https://github.com/charmbracelet/bubbletea and https://github.com/manifoldco/promptui will look into this 😄
looks like the main difference is that bubbletea
is a whole replacement for cobra
, whereas promptui
is specifically for capturing user inputs. I think for now we can go with minor improvements for applicable commands with promptui
, will have a draft PR up soon 😄
Nice, didn't knew promptui
yet. They seem both to be very interesting. But I haven't done anything with bubbletea
either, yet. So I don't know how much more work it would be.
Looking forward to your PR :-)
promptui
will complement Cobra nicely. I'm currently working with bubbletea
and Cobra, so I have little to say about them. But I'll definitely put my opinion here after trying them out a bit.
You'll definitely annoy some cmd users on Windows with promptui
(ASCII Bell) 😄