mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #32104 from lojies/usededentforcompletion
Automatic merge from submit-queue Use dedent for completion.go
This commit is contained in:
commit
f2ca99ed2c
@ -20,18 +20,21 @@ import (
|
||||
"bytes"
|
||||
"io"
|
||||
|
||||
"github.com/renstrom/dedent"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
|
||||
)
|
||||
|
||||
const (
|
||||
completion_long = `Output shell completion code for the given shell (bash or zsh).
|
||||
var (
|
||||
completion_long = dedent.Dedent(`
|
||||
Output shell completion code for the given shell (bash or zsh).
|
||||
|
||||
This command prints shell code which must be evaluation to provide interactive
|
||||
completion of kubectl commands.
|
||||
`
|
||||
completion_example = `
|
||||
`)
|
||||
|
||||
completion_example = dedent.Dedent(`
|
||||
$ source <(kubectl completion bash)
|
||||
|
||||
will load the kubectl completion code for bash. Note that this depends on the
|
||||
@ -46,7 +49,7 @@ If you use zsh*, the following will load kubectl zsh completion:
|
||||
|
||||
$ source <(kubectl completion zsh)
|
||||
|
||||
* zsh completions are only supported in versions of zsh >= 5.2`
|
||||
* zsh completions are only supported in versions of zsh >= 5.2`)
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user