Add Option add-in to customize frames#2
Add Option add-in to customize frames#2yarlson merged 3 commits intoyarlson:mainfrom klausman:frames
Conversation
Can be used like so:
```
p := pin.New("Processing...",
pin.WithSpinnerFrames([]rune{'.', 'o', 'O', '0', 'O', 'o'}),
)
```
|
Could you please update tests as well? |
I am not sure how to properly test setting the spinner frames, since they never show up when used non-interactive. And when used interactive, the output is not captured. I could of course make something similar to the Basic Usage test, but with custom frames, to see if the call works at all. The added code doesn't have any error paths, so there's nothing to test there, either. |
Similar to the Basic Usage test would be good for now. |
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Can be used like so: