dominicegginton / spinner

Powerful Swift CLI Spinners
MIT License
44 stars 5 forks source link

Support for Formatting the Spinner #8

Closed dominicegginton closed 4 years ago

dominicegginton commented 5 years ago

Current spinner object prints the pattern frames before the text object. It would be nice to implement support for formatting this output. For example:

Spinner Text .
Spinner Text ..
Spinner Text ...
Spinner Text ....
Spinner Text ✔

This could be implemented with a string that is passed to the Spinner object. For example, “[p] [t]”.

dominicegginton commented 4 years ago

I have added support for formatting the spinner in patch 1.1.1 Full documentation and testing will be released soon but for now

you can try a loads of stuff here as only the {} will be replaced

"{S} - {T}"
dominicegginton commented 4 years ago

Documentation and full support has now been added in 1.1.2