From 82073831708ab5ffb5575f1048d1b086f8053481 Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Thu, 5 May 2022 21:27:52 +0800 Subject: [PATCH] update kubectl doc url Signed-off-by: xin.li Kubernetes-commit: e89a87f708a03c5a8331639739982d426077ad3a --- pkg/cmd/cmd.go | 2 +- pkg/cmd/get/get_flags.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index 123da078d..9dba3ce19 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -258,7 +258,7 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command { kubectl controls the Kubernetes cluster manager. Find more information at: - https://kubernetes.io/docs/reference/kubectl/overview/`), + https://kubernetes.io/docs/reference/kubectl/`), Run: runHelp, // Hook before and after Run initialize and write profiles to disk, // respectively. diff --git a/pkg/cmd/get/get_flags.go b/pkg/cmd/get/get_flags.go index bbe2e6667..9a79a5663 100644 --- a/pkg/cmd/get/get_flags.go +++ b/pkg/cmd/get/get_flags.go @@ -162,7 +162,7 @@ func (f *PrintFlags) AddFlags(cmd *cobra.Command) { f.CustomColumnsFlags.AddFlags(cmd) if f.OutputFormat != nil { - cmd.Flags().StringVarP(f.OutputFormat, "output", "o", *f.OutputFormat, fmt.Sprintf(`Output format. One of: (%s). See custom columns [https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [https://kubernetes.io/docs/reference/kubectl/jsonpath/].`, strings.Join(f.AllowedFormats(), ", "))) + cmd.Flags().StringVarP(f.OutputFormat, "output", "o", *f.OutputFormat, fmt.Sprintf(`Output format. One of: (%s). See custom columns [https://kubernetes.io/docs/reference/kubectl/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [https://kubernetes.io/docs/reference/kubectl/jsonpath/].`, strings.Join(f.AllowedFormats(), ", "))) util.CheckErr(cmd.RegisterFlagCompletionFunc( "output", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {