kapp icon indicating copy to clipboard operation
kapp copied to clipboard

Print success message to stderr

Open jvassev opened this issue 4 years ago • 4 comments

The string "Succeeded" confuses tools that parse the output.

For example, you couldn't do eval "$(kapp completion bash)" without the error Succeeded: command not found.

Maybe don't even bother with this message and output "Error" only when unsuccessful?

jvassev avatar Apr 01 '21 14:04 jvassev

@jvassev, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

vmwclabot avatar Apr 01 '21 14:04 vmwclabot

@jvassev, VMware has approved your signed contributor license agreement.

vmwclabot avatar Apr 01 '21 17:04 vmwclabot

PR seems reasonable. it seems like there is a failing test.

cppforlife avatar Apr 13 '21 20:04 cppforlife

Hello @jvassev looks like that you just need to correct one test, and from the looks of it you just need to remove the following lines: https://github.com/vmware-tanzu/carvel-kapp/blob/develop/test/e2e/order_test.go#L121 https://github.com/vmware-tanzu/carvel-kapp/blob/develop/test/e2e/order_test.go#L122 https://github.com/vmware-tanzu/carvel-kapp/blob/develop/test/e2e/order_test.go#L206 https://github.com/vmware-tanzu/carvel-kapp/blob/develop/test/e2e/order_test.go#L207

and everything should be ready to merge

joaopapereira avatar May 05 '21 13:05 joaopapereira

Closing this as we no longer print the Succeeded message for bash completion command. Please feel free to reopen in case you feel that this is still required.

praveenrewar avatar Nov 16 '22 12:11 praveenrewar