datreeio / datree

Prevent Kubernetes misconfigurations from reaching production (again 😤 )! From code to cloud, Datree provides an E2E policy enforcement solution to run automatic checks for rule violations. See our docs: https://hub.datree.io
https://datree.io
Apache License 2.0
6.39k stars 363 forks source link

Ability to hide "loading" animation #164

Closed mahgo closed 3 years ago

mahgo commented 3 years ago

Is your feature request related to a problem? Please describe. I'm running datree in Azure Pipelines, and my logs are being filled up with lots of loading messages, such as:

| Loading... WWWWWWWWWWWWWW

/ Loading... WWWWWWWWWWWWWW

- Loading... WWWWWWWWWWWWWW

\ Loading... WWWWWWWWWWWWWW

| Loading... WWWWWWWWWWWWWW

/ Loading... WWWWWWWWWWWWWW

- Loading... WWWWWWWWWWWWWW

\ Loading... WWWWWWWWWWWWWW

| Loading... WWWWWWWWWWWWWW

/ Loading... WWWWWWWWWWWWWW

- Loading... WWWWWWWWWWWWWW

\ Loading... WWWWWWWWWWWWWW

| Loading... WWWWWWWWWWWWWW

/ Loading... WWWWWWWWWWWWWW

- Loading... WWWWWWWWWWWWWW

\ Loading... WWWWWWWWWWWWWW

Describe the solution you'd like It would be good to be able to disable this with an optional argument.

eyarz commented 3 years ago

You have a good point there :) I think the best way to do it is by updating our --output simple flag to also remove the loading animation. WDYT?

mahgo commented 3 years ago

That would work for me!

myishay commented 3 years ago

A fix for this issue has been released and --output simple now also removes the loading animation. Enjoy!

eyarz commented 3 years ago

Just don't forget to update the CLI :) curl https://get.datree.io | /bin/bash

mahgo commented 3 years ago

Works great, thanks!