in order to enable streaming and storing logs in CIs etc., detect whether stdout is redirected to a file or similar and in that case don't print deletion characters, progress bars etc, but just whatever has changed (percentage, label, etc)
maybe better: don't detect it, but create a command line flag for the import command. sometimes when redirecting to a file it's still nice to be able to tail -f and have the progress bars.
in order to enable streaming and storing logs in CIs etc., detect whether stdout is redirected to a file or similar and in that case don't print deletion characters, progress bars etc, but just whatever has changed (percentage, label, etc)
maybe better: don't detect it, but create a command line flag for the import command. sometimes when redirecting to a file it's still nice to be able to
tail -fand have the progress bars.