Shopify / kubeaudit

kubeaudit helps you audit your Kubernetes clusters against common security controls
MIT License
1.89k stars 183 forks source link

:sparkles: Add --no-color flag #449

Closed genevieveluyt closed 2 years ago

genevieveluyt commented 2 years ago
Description

Adds --no-color flag which can be used to disable printing color codes in the output. Colored output is intended for stdout but displays poorly elsewhere.

For example, redirecting the default "pretty" output to a file:


---------------- Results for ---------------

  apiVersion: v1
  kind: Namespace
  metadata:
    name: deployment-apps-v1

--------------------------------------------
Type of change
Checklist:
genevieveluyt commented 2 years ago

@Owen-Cummings it pains me to not use colour haha

genevieveluyt commented 2 years ago

The failing CLA check is due to a bug. Since there's no ETA to fix, we've got the ok to merge through the failing check (Shopify employees don't have to sign the CLA, they should always pass the check).