Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn>

rename variables to make sure that they conform to golang variable name convention
This commit is contained in:
bruceauyeung
2017-02-16 11:47:00 +08:00
parent 099e7a5f0a
commit ab4029c85b
23 changed files with 73 additions and 73 deletions

View File

@@ -50,7 +50,7 @@ type PortForwardOptions struct {
}
var (
portforward_example = templates.Examples(i18n.T(`
portforwardExample = templates.Examples(i18n.T(`
# Listen on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in the pod
kubectl port-forward mypod 5000 6000
@@ -75,7 +75,7 @@ func NewCmdPortForward(f cmdutil.Factory, cmdOut, cmdErr io.Writer) *cobra.Comma
Use: "port-forward POD [LOCAL_PORT:]REMOTE_PORT [...[LOCAL_PORT_N:]REMOTE_PORT_N]",
Short: i18n.T("Forward one or more local ports to a pod"),
Long: "Forward one or more local ports to a pod.",
Example: portforward_example,
Example: portforwardExample,
Run: func(cmd *cobra.Command, args []string) {
if err := opts.Complete(f, cmd, args); err != nil {
cmdutil.CheckErr(err)