dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
685 stars 76 forks source link

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

Open aaronsheah opened 3 years ago

aaronsheah commented 3 years ago

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 commented 3 years ago

@dominikbraun what do you think?

dominikbraun commented 3 years ago

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

aaronsheah commented 3 years ago

@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 commented 3 years ago

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 😄

aligator commented 3 years ago

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

retronav commented 3 years ago

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