This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 6b09af9d214cbdb69d3783a979104b3093c56142
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Tue Jun 4 11:11:16 2019 +0200

    fix typos
---
 pkg/cmd/install.go | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index bb93c09..ab91a9e 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -80,7 +80,7 @@ func newCmdInstall(rootCmdOptions *RootCmdOptions) 
*cobra.Command {
        // maven settings
        cmd.Flags().StringVar(&impl.localRepository, "local-repository", "", 
"Location of the local maven repository")
        cmd.Flags().StringVar(&impl.mavenSettings, "maven-settings", "", 
"Configure the source of the maven settings (configmap|secret:name[/key])")
-       cmd.Flags().StringSliceVar(&impl.mavenRpositories, "maven-repository", 
nil, "Add a maven repository")
+       cmd.Flags().StringSliceVar(&impl.mavenRepositories, "maven-repository", 
nil, "Add a maven repository")
 
        // completion support
        configureBashAnnotationForFlag(
@@ -96,23 +96,23 @@ func newCmdInstall(rootCmdOptions *RootCmdOptions) 
*cobra.Command {
 
 type installCmdOptions struct {
        *RootCmdOptions
-       wait             bool
-       clusterSetupOnly bool
-       skipClusterSetup bool
-       exampleSetup     bool
-       outputFormat     string
-       camelVersion     string
-       runtimeVersion   string
-       baseImage        string
-       operatorImage    string
-       localRepository  string
-       buildStrategy    string
-       buildTimeout     string
-       mavenRpositories []string
-       mavenSettings    string
-       properties       []string
-       contexts         []string
-       registry         v1alpha1.IntegrationPlatformRegistrySpec
+       wait              bool
+       clusterSetupOnly  bool
+       skipClusterSetup  bool
+       exampleSetup      bool
+       outputFormat      string
+       camelVersion      string
+       runtimeVersion    string
+       baseImage         string
+       operatorImage     string
+       localRepository   string
+       buildStrategy     string
+       buildTimeout      string
+       mavenRepositories []string
+       mavenSettings     string
+       properties        []string
+       contexts          []string
+       registry          v1alpha1.IntegrationPlatformRegistrySpec
 }
 
 // nolint: gocyclo
@@ -201,13 +201,13 @@ func (o *installCmdOptions) install(_ *cobra.Command, _ 
[]string) error {
                        platform.Spec.Build.Timeout.Duration = d
                }
 
-               if len(o.mavenRpositories) > 0 {
+               if len(o.mavenRepositories) > 0 {
                        o.mavenSettings = 
fmt.Sprintf("configmap:%s-maven-settings/settings.xml", platform.Name)
 
                        settings := maven.NewSettings()
-                       repositories := make([]maven.Repository, 0, 
len(o.mavenRpositories))
+                       repositories := make([]maven.Repository, 0, 
len(o.mavenRepositories))
 
-                       for i, r := range o.mavenRpositories {
+                       for i, r := range o.mavenRepositories {
                                repository := maven.NewRepository(r)
                                if repository.ID == "" {
                                        repository.ID = 
fmt.Sprintf("repository-%03d", i)
@@ -356,8 +356,8 @@ func (o *installCmdOptions) validate(_ *cobra.Command, _ 
[]string) error {
                result = multierr.Append(result, err)
        }
 
-       if len(o.mavenRpositories) > 0 && o.mavenSettings != "" {
-               result = fmt.Errorf("incompatible options combinations: you 
canno set both mavenRpository and mavenSettings")
+       if len(o.mavenRepositories) > 0 && o.mavenSettings != "" {
+               result = fmt.Errorf("incompatible options combinations: you 
cannot set both mavenRepository and mavenSettings")
        }
 
        return result

Reply via email to