timetrace icon indicating copy to clipboard operation
timetrace copied to clipboard

Migrate to `promptui` (or a more interactive cli)

Open aaronsheah opened this issue 3 years ago • 6 comments

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.

aaronsheah avatar May 22 '21 20:05 aaronsheah

@dominikbraun what do you think?

aaronsheah avatar May 22 '21 20:05 aaronsheah

Not a bad idea for sure. @aligator recently suggested using bubbletea - maybe we could compare the two.

dominikbraun avatar May 22 '21 21:05 dominikbraun

@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 😄

aaronsheah avatar May 22 '21 21:05 aaronsheah

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 😄

aaronsheah avatar May 23 '21 00:05 aaronsheah

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 :-)

aligator avatar May 23 '21 10:05 aligator

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) 😄

retronav avatar May 27 '21 17:05 retronav