yaspin icon indicating copy to clipboard operation
yaspin copied to clipboard

`inject_spinner` decorator

Open pavdmyt opened this issue 1 year ago • 1 comments

Use a dependency injection to pass spinner instance explicitly to decorated function. Function receives spinner as first argument. This allows to modify spinner properties while using yaspin as a function decorator.

A solution for https://github.com/pavdmyt/yaspin/discussions/210

pavdmyt avatar Nov 17 '24 17:11 pavdmyt

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.96%. Comparing base (9c7430b) to head (e264b04).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #249      +/-   ##
==========================================
+ Coverage   94.83%   94.96%   +0.13%     
==========================================
  Files           5        5              
  Lines         387      397      +10     
==========================================
+ Hits          367      377      +10     
  Misses         20       20              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Nov 17 '24 17:11 codecov-commenter

Any updates on this ?

afteroot avatar Aug 09 '25 19:08 afteroot

@afteroot I'll reconsider when preparing the next release.

pavdmyt avatar Aug 11 '25 13:08 pavdmyt

Closing in favor of #256

pavdmyt avatar Aug 21 '25 17:08 pavdmyt