Is your feature request related to a problem? Please describe.
Currently, when using spinner.stop() without any message, an empty line with the success symbol is printed out. The way I would like to use it is; I have a command that can have three outcomes: pass, soft fail and hard fail. Hard fail uses spinner.stop(msg, 1), but during soft fail I would like to have an option to not print out anything on spinner stop and use something like log.warn() instead.
Describe the solution you'd like
I would like for the command to not print out the empty line with just the success symbol when the message is empty, or a way to toggle this, if possible.
Describe alternatives you've considered
I've considered not using spinner for this and just using log.message() instead, but I like the "loading" element that spinner provides.
Additional context
-
Is your feature request related to a problem? Please describe.
Currently, when using
spinner.stop()without any message, an empty line with the success symbol is printed out. The way I would like to use it is; I have a command that can have three outcomes: pass, soft fail and hard fail. Hard fail usesspinner.stop(msg, 1), but during soft fail I would like to have an option to not print out anything on spinner stop and use something likelog.warn()instead.Describe the solution you'd like
I would like for the command to not print out the empty line with just the success symbol when the message is empty, or a way to toggle this, if possible.
Describe alternatives you've considered
I've considered not using spinner for this and just using
log.message()instead, but I like the "loading" element that spinner provides.Additional context
-