This is an automated email from the ASF dual-hosted git repository.
gfournier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 8cff2ec0e fix(cli): Remove completion option on help
8cff2ec0e is described below
commit 8cff2ec0ed72ea131027ec72cfa671a0421d8f7b
Author: Gaelle Fournier <[email protected]>
AuthorDate: Tue Dec 23 16:31:55 2025 +0100
fix(cli): Remove completion option on help
---
pkg/cmd/root.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go
index b672b5aa6..136ba484e 100644
--- a/pkg/cmd/root.go
+++ b/pkg/cmd/root.go
@@ -88,6 +88,9 @@ func kamelPreAddCommandInit(options *RootCmdOptions)
*cobra.Command {
cmd.PersistentFlags().StringVarP(&options.Namespace, "namespace", "n",
"", "Namespace to use for all operations")
cmd.PersistentFlags().BoolVarP(&options.Verbose, "verbose", "V", false,
"Verbose logging")
+ // Disable the default completion command
+ cmd.CompletionOptions.DisableDefaultCmd = true
+
cobra.AddTemplateFunc("wrappedFlagUsages", wrappedFlagUsages)
cmd.SetUsageTemplate(usageTemplate)