mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #109824 from my-git9/kubectlurl
update kubectl doc url
This commit is contained in:
commit
00f829b352
@ -258,7 +258,7 @@ func NewKubectlCommand(o KubectlOptions) *cobra.Command {
|
|||||||
kubectl controls the Kubernetes cluster manager.
|
kubectl controls the Kubernetes cluster manager.
|
||||||
|
|
||||||
Find more information at:
|
Find more information at:
|
||||||
https://kubernetes.io/docs/reference/kubectl/overview/`),
|
https://kubernetes.io/docs/reference/kubectl/`),
|
||||||
Run: runHelp,
|
Run: runHelp,
|
||||||
// Hook before and after Run initialize and write profiles to disk,
|
// Hook before and after Run initialize and write profiles to disk,
|
||||||
// respectively.
|
// respectively.
|
||||||
|
@ -162,7 +162,7 @@ func (f *PrintFlags) AddFlags(cmd *cobra.Command) {
|
|||||||
f.CustomColumnsFlags.AddFlags(cmd)
|
f.CustomColumnsFlags.AddFlags(cmd)
|
||||||
|
|
||||||
if f.OutputFormat != nil {
|
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(
|
util.CheckErr(cmd.RegisterFlagCompletionFunc(
|
||||||
"output",
|
"output",
|
||||||
func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
||||||
|
Loading…
Reference in New Issue
Block a user