Closed frnksgr closed 6 hours ago
Fixed in 2.20.5, deprecation notice is now printed to stderr
Thank you. Tested manually :
➜ kyma version > bla
WARNING: All commands within v2 are deprecated. We are designing v3 of kyma CLI with a new set of commands that will be first released within alpha command group.
➜ cat bla
Kyma CLI version: 2.20.5
Kyma cluster version: N/A
Description
Calling 'kyma completion bash' writes warnings/errors to stdout which can not be evaluated by bash, causing errors when the output is sourced.
For example (kyma version 2.20.4):
Expected result
Warnings should be written to stderr. 'kyma completion bash 2>/dev/null' should only contain valid bash code (no error messages).
Actual result
For example call 'kyma completion bash 2>/dev/null' on an outdated version and you cannot source it, because of warning/error messages at the beginning written to stdout: 'source <(kyma completion bash 2>/dev/null)' will fail.
Steps to reproduce
See above.
Troubleshooting
See above.