Skip to content

Commit

Permalink
Refactoring to camel case variable names
Browse files Browse the repository at this point in the history
Follow-up PR to remove variables with snake case, and replace them with
camel case.
  • Loading branch information
chrislovecnm committed Feb 26, 2018
1 parent a9ec4d1 commit 1ea0ca4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/kops/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import (
)

var (
set_long = templates.LongDesc(i18n.T(`Set a configuration field.
setLong = templates.LongDesc(i18n.T(`Set a configuration field.
kops set does not update the cloud resources, to apply the changes use "kops update cluster".
`))

set_example = templates.Examples(i18n.T(`
setExample = templates.Examples(i18n.T(`
# Set cluster to run kubernetes version 1.10.0
kops set cluster k8s-cluster.example.com cluster.spec.kubernetesVersion=1.10.0
`))
Expand All @@ -41,8 +41,8 @@ func NewCmdSet(f *util.Factory, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "set",
Short: i18n.T("Set fields on clusters and other resources."),
Long: set_long,
Example: set_example,
Long: setLong,
Example: setExample,
}

// create subcommands
Expand Down
8 changes: 4 additions & 4 deletions cmd/kops/set_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ import (
)

var (
set_cluster_long = templates.LongDesc(i18n.T(`Set a cluster field value.
setClusterLong = templates.LongDesc(i18n.T(`Set a cluster field value.
This command changes the desired cluster configuration in the registry.
kops set does not update the cloud resources, to apply the changes use "kops update cluster".`))

set_cluster_example = templates.Examples(i18n.T(`
setClusterExample = templates.Examples(i18n.T(`
# Set cluster to run kubernetes version 1.10.0
kops set cluster k8s.cluster.site spec.kubernetesVersion=1.10.0
`))
Expand All @@ -49,8 +49,8 @@ func NewCmdSetCluster(f *util.Factory, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "cluster",
Short: i18n.T("Set cluster fields."),
Long: set_cluster_long,
Example: set_cluster_example,
Long: setClusterLong,
Example: setClusterExample,
Run: func(cmd *cobra.Command, args []string) {
for i, arg := range args {
index := strings.Index(arg, "=")
Expand Down

0 comments on commit 1ea0ca4

Please sign in to comment.