Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: WIP allow text to be dynamic #166

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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