FairwindsOps/pluto

CLI --option to silence the footer "Want more? Automate Pluto for free with Fairwinds Insights! ๐Ÿš€ https://fairwinds.com/insights-signup/pluto ๐Ÿš€"

HariSekhon opened this issue ยท 0 comments

Is your feature request related to a problem? Please describe.

I am using this script to scan the files in various kustomizations throughout my work repo (itself a workaround to #444):

https://github.com/HariSekhon/DevOps-Bash-tools/blob/master/kubernetes/pluto_detect_kustomize_materialize.sh

which results in output like:

========================================
./jenkins-dev/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/jenkins-dev/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.


Want more? Automate Pluto for free with Fairwinds Insights!
 ๐Ÿš€ https://fairwinds.com/insights-signup/pluto ๐Ÿš€

========================================
./ingress-nginx/uk-production/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/ingress-nginx/uk-production/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.
  
  
Want more? Automate Pluto for free with Fairwinds Insights!
 ๐Ÿš€ https://fairwinds.com/insights-signup/pluto ๐Ÿš€
  
========================================
./ingress-nginx/us-staging/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/ingress-nginx/us-staging/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.
  
  
Want more? Automate Pluto for free with Fairwinds Insights!
 ๐Ÿš€ https://fairwinds.com/insights-signup/pluto ๐Ÿš€
  
========================================
./ingress-nginx/us-dev/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/ingress-nginx/us-dev/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.
  
  
Want more? Automate Pluto for free with Fairwinds Insights!
 ๐Ÿš€ https://fairwinds.com/insights-signup/pluto ๐Ÿš€

with lots of redundant advertising footers cluttering up the output.

Feature request for a CLI --switch to silence the footer than appears at the end of every pluto run:

Want more? Automate Pluto for free with Fairwinds Insights!
 ๐Ÿš€ https://fairwinds.com/insights-signup/pluto ๐Ÿš€

Describe the solution you'd like

pluto detect-files --no-footer

or

pluto detect-files --quiet

Describe alternatives you've considered

I've tried without luck:

pluto detect-files -v 0

Even if I wasn't running multiple pluto commands it'd still be nice to be able to quiet the footer instead of seeing it every time.

It looks like 2>/dev/null will stop the footer being shown but I'd rather not throw the errors out with the bath water if it can be avoided.