You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem description
When logging output to a file the throbber isn't overwritten but appended:
⠋ Compiling Main Process Code⠙ Preparing to Package Application for arch: x64⠙ Compiling Main Process Code⠹ Preparing to Package Application for arch: x64⠹ Compiling Main Process Code⠸ Preparing to Package Application for arch: x64⠸ Compili
ng Main Process Code⠼ Preparing to Package Application for arch: x64⠼ Compiling Main Process Code⠴ Preparing to Package Application for arch: x64⠴ Compiling Mai
n Process Code⠦ Preparing to Package Application for arch: x64⠦ Compiling Main Process Code⠧ Preparing to Package Application for arch: x64⠧ Compiling Main Proc
ess Code⠇ Preparing to Package Application for arch: x64⠇ Compiling Main Process Code⠏ Preparing to Package Application for arch: x64⠏ Compiling Main Process Co
de⠋ Preparing to Package Application for arch: x64⠋ Compiling Main Process Code⠙ Preparing to Package Application for arch: x64⠙ Compiling Main Process Code⠹ Preparing to Package Application for arch: x64⠹ Compiling Main Process Code⠸ Preparing to Package Application for arch: x64⠸ Compiling Main Process Code⠼ Preparin
g to Package Application for arch: x64⠼ Compiling Main Process Code⠴ Preparing to Package Application for arch: x64⠴ Compiling Main Process Code⠦ Preparing to P
ackage Application for arch: x64⠦ Compiling Main Process Code⠧ Preparing to Package Application for arch: x64⠧ Compiling Main Process Code⠇ Preparing to Package
Application for arch: x64
Proposed solution
Provide a flag that suppresses the throbber animation.
Alternatives considered
Many command line utilities try to detect whether they're writing to a TTY to toggle behavior automatically. Like how ls suppresses coloring when you pipe to less. Ideally there would still be a way to force output format when you want to.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Many command line utilities try to detect whether they're writing to a TTY to toggle behavior automatically.
The ora docs mention that this should happen automatically 🤔
If [the isEnabled flag] is not specified, the spinner will be enabled if the stream is being run inside a TTY context (not spawned or piped) and/or not in a CI environment.
Piping listr2 output to a file works as expected, closing this out as we've already landed listr2 support for start/init and package et. al is on the way in #3043
Pre-flight checklist
Problem description
When logging output to a file the throbber isn't overwritten but appended:
Proposed solution
Provide a flag that suppresses the throbber animation.
Alternatives considered
Many command line utilities try to detect whether they're writing to a TTY to toggle behavior automatically. Like how
ls
suppresses coloring when you pipe toless
. Ideally there would still be a way to force output format when you want to.Additional information
No response
The text was updated successfully, but these errors were encountered: