halo icon indicating copy to clipboard operation
halo copied to clipboard

feat: WIP allow text to be dynamic

Open davidxia opened this issue 3 years ago • 0 comments

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

  • [x] 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

davidxia avatar Nov 11 '21 13:11 davidxia