This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 38ae42ebc9badbb5c4df2af8a8414f3a7ea212c8
Author: Nicola Ferraro <[email protected]>
AuthorDate: Thu Jan 23 10:20:01 2020 +0100

    fix #1188: use pointer for decoding
---
 pkg/cmd/init.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cmd/init.go b/pkg/cmd/init.go
index 38bd4a1..4548fa1 100644
--- a/pkg/cmd/init.go
+++ b/pkg/cmd/init.go
@@ -37,7 +37,7 @@ func newCmdInit(rootCmdOptions *RootCmdOptions) 
(*cobra.Command, *initCmdOptions
                Use:     "init",
                Short:   "Initialize empty Camel K files",
                Long:    `Initialize empty Camel K integrations and other 
resources.`,
-               PreRunE: decode(options),
+               PreRunE: decode(&options),
                RunE: func(cmd *cobra.Command, args []string) error {
                        if err := options.validate(cmd, args); err != nil {
                                return err

Reply via email to