kubearmor / kubearmor-client

KubeArmor cli tool aka kArmor :robot:
Apache License 2.0
34 stars 82 forks source link

introduced an output flag #446

Closed EraKin575 closed 2 months ago

EraKin575 commented 2 months ago

introduced option flags to beautify logs

fixes: https://github.com/kubearmor/kubearmor-client/issues/439

navin772 commented 2 months ago

Hi @EraKin575 thanks for the PR but I cannot seem to get the desired output with karmor logs --output pretty-json, it just prints the normal output as in karmor logs.

You need to change the WatchTelemetryHelper function. Also, for the -o shorthand use StringVarP() instead of StringVar().

In this process, I ended up solving the issue. I can guide you with the solution or if you don't mind I can open a PR and you can give your feedback there.

EraKin575 commented 2 months ago

@navin772 Sorry, I got stuck in some stuff. I have fixed the output flag. thanks for the assist

EraKin575 commented 2 months ago

closing due to duplicate PRs