astefanutti commented on a change in pull request #2575: URL: https://github.com/apache/camel-k/pull/2575#discussion_r691048718
########## File path: pkg/cmd/bind.go ########## @@ -206,6 +193,34 @@ func (o *bindCmdOptions) run(args []string) error { return nil } +func showOutput(cmd *cobra.Command, binding *v1alpha1.KameletBinding, outputFormat string) error { Review comment: The _schema_ is the concept that is responsible to map GKV and types, so it may be used here, rather than doing it ourselves. It implements the `runtime.ObjectTyper` interface, that can be used to add the GKV information. Also it may be possible to rely on the `cli-runtime` package, which is used by `kubectl`: https://github.com/kubernetes/cli-runtime/blob/c2f4736118ac4e1fd42fdd347954747433ca4fb7/pkg/printers/typesetter.go#L35 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org