Skip to content

[Request] Empty message spinner.stop() should print nothing #401

@richard174

Description

@richard174

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
-

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions