You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/25 09:37:12 UTC
[camel-k] 02/03: Kamel dump command: go-lint happy
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 3397ce0417c88e1a0401783747455d709c67585e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 25 08:24:27 2021 +0100
Kamel dump command: go-lint happy
---
pkg/cmd/dump.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg/cmd/dump.go b/pkg/cmd/dump.go
index 70bcd51..57dab43 100644
--- a/pkg/cmd/dump.go
+++ b/pkg/cmd/dump.go
@@ -62,15 +62,15 @@ func (o *dumpCmdOptions) dump(_ *cobra.Command, args []string) error {
if err != nil {
return err
}
- Dump(o.Context, c, o.Namespace, writer)
+ dumpNamespace(o.Context, c, o.Namespace, writer)
defer writer.Close()
} else {
- Dump(o.Context, c, o.Namespace, os.Stdout)
+ dumpNamespace(o.Context, c, o.Namespace, os.Stdout)
}
return nil
}
-func Dump(ctx context.Context, c client.Client, ns string, out *os.File) error {
+func dumpNamespace(ctx context.Context, c client.Client, ns string, out *os.File) error {
camelClient, err := versioned.NewForConfig(c.GetConfig())
if err != nil {