Extract strings for translation for the kubectl config family.

This commit is contained in:
Brendan Burns
2017-01-24 17:01:55 -08:00
parent f83223091f
commit 25ba561702
19 changed files with 317 additions and 19 deletions

View File

@@ -27,6 +27,7 @@ import (
"k8s.io/client-go/tools/clientcmd"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/util/i18n"
)
type unsetOptions struct {
@@ -44,7 +45,7 @@ func NewCmdConfigUnset(out io.Writer, configAccess clientcmd.ConfigAccess) *cobr
cmd := &cobra.Command{
Use: "unset PROPERTY_NAME",
Short: "Unsets an individual value in a kubeconfig file",
Short: i18n.T("Unsets an individual value in a kubeconfig file"),
Long: unset_long,
Run: func(cmd *cobra.Command, args []string) {
if !options.complete(cmd) {