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

@@ -37,7 +37,7 @@ import (
)
var (
replace_long = templates.LongDesc(i18n.T(`
replaceLong = templates.LongDesc(i18n.T(`
Replace a resource by filename or stdin.
JSON and YAML formats are accepted. If replacing an existing resource, the
@@ -47,7 +47,7 @@ var (
Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/blob/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.`))
replace_example = templates.Examples(i18n.T(`
replaceExample = templates.Examples(i18n.T(`
# Replace a pod using the data in pod.json.
kubectl replace -f ./pod.json
@@ -69,8 +69,8 @@ func NewCmdReplace(f cmdutil.Factory, out io.Writer) *cobra.Command {
// update is deprecated.
Aliases: []string{"update"},
Short: i18n.T("Replace a resource by filename or stdin"),
Long: replace_long,
Example: replace_example,
Long: replaceLong,
Example: replaceExample,
Run: func(cmd *cobra.Command, args []string) {
cmdutil.CheckErr(cmdutil.ValidateOutputArgs(cmd))
err := RunReplace(f, out, cmd, args, options)