Skip to content

Conversation

davidxia
Copy link

@davidxia davidxia commented Nov 11, 2021

Description of new feature, or changes

Allow text to be dynamic by providing a function like so.

with Halo(text=lambda: f'date {datetime.datetime.now()}'):
    time.sleep(100)

Checklist

  • Your branch is up-to-date with the base branch
  • You've included at least one test if this is a new feature
  • All tests are passing

Related Issues and Discussions

closed #167

People to notify

by providing a function like so.

```python
with Halo(text=lambda: f'date {datetime.datetime.now()}'):
    time.sleep(100)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: any appetite for supporting dynamic text?
1 participant