I'd like the text to be dynamic, e.g. an updating timestamp or time since something happened.
I have a prototype here where users can make text a function instead of a static string.
with Halo(text=lambda: f'date {datetime.datetime.now()}'):
time.sleep(100)
Any appetite for supporting this? If so, any feedback on my PR would be great. I still have to add tests.
Description
I'd like the text to be dynamic, e.g. an updating timestamp or time since something happened. I have a prototype here where users can make
text
a function instead of a static string.Any appetite for supporting this? If so, any feedback on my PR would be great. I still have to add tests.