chelnak / ysmrr

YSMRR is a package that provides simple multi-line compatible spinners for Go applications.
MIT License
71 stars 6 forks source link

Enhance complete and error methods #60

Closed chelnak closed 1 year ago

chelnak commented 1 year ago

Prior to this change a user of this package would need to call UpdateMessage if they wanted to update the spinner with a message after either Complete or Error had been called.

This change introduces four new functions that will allow users to control messages when marking a spinner as Complete or in an Error state.

ErrorWithMessage(..)
ErrorWithMessagef(..)
CompleteWithMessage(..)
CompleteWithMessagef(..)