microcks-cli icon indicating copy to clipboard operation
microcks-cli copied to clipboard

docs: fix small typos

Open cotishq opened this issue 6 months ago • 1 comments

Describe the bug

spotted some typos in the codebase

  • cmd/start.go -> Line 31
  • README.md -> Line 81
  • cmd/login -> Line 43
  • pkg/connectors/microcks_client.go -> Line 206
  • pkg/connectors/microcks_client.go -> Line 244
  • pkg/config/localconfig.go -> Line 348
  • pkg/connectors/keycloak_client.go -> Line 32

Attach any resources that can help us understand the issue.

Image
Image
Image
Image
Image
Image
Image

cotishq avatar May 05 '26 14:05 cotishq

Hi! I fixed the typos listed in #292 (cmd examples, docs, and a few comment/error-message strings).

Patch (diff):


diff --git a/README.md b/README.md
index bcd5cc0..8b6f623 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ microcks [command] [flags]
 
 | Flag                     | Description                                 |
 | ------------------------ | ------------------------------------------- |
-| `-h, --help`             | help for microck command                    |
+| `-h, --help`             | help for microcks command                   |
 | `--config`               | Path to Microcks config file                |
 | `--microcks-context`     | Name of the Microcks context to use         |
 | `--verbose`              | Produce dumps of HTTP exchanges             |
diff --git a/cmd/login.go b/cmd/login.go
index 17bdb10..545d501 100644
--- a/cmd/login.go
+++ b/cmd/login.go
@@ -40,7 +40,7 @@ func NewLoginCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command
 		Use:   "login SERVER",
 		Short: "Login into Microcks instance",
 		Long:  "Login into Microcks instance",
-		Example: `microcks login http://locahost:8080
+		Example: `microcks login http://localhost:8080
 
 # Provide name to your logged in context (Default context name is server name)
 microcks login http://localhost:8080 --name
diff --git a/cmd/start.go b/cmd/start.go
index 828acc1..d2fd89b 100644
--- a/cmd/start.go
+++ b/cmd/start.go
@@ -28,10 +28,10 @@ microcks start
 microcks start --port [Port you want]
 
 # Define your driver (by default docker)
-microcks start --driver [driver you wnat either 'docker' or 'podman']
+microcks start --driver [driver you want either 'docker' or 'podman']
 
 # Define name of your microcks container/instance
-microcks start --name [name of you container/instance]`,
+microcks start --name [name of your container/instance]`,
 		Run: func(cmd *cobra.Command, args []string) {
 
 			configFile := globalClientOpts.ConfigPath
diff --git a/documentation/cmd/login.md b/documentation/cmd/login.md
index 0480944..824d260 100644
--- a/documentation/cmd/login.md
+++ b/documentation/cmd/login.md
@@ -4,7 +4,7 @@ Log in to a Microcks instance using username/password or SSO. Creates or updates
 ### Examples
 ```bash
 # Login to microcks using a username and password
-microcks login http://locahost:8080
+microcks login http://localhost:8080
 
 # Provide name to your logged in context (Default context name is server name)
 microcks login http://localhost:8080 --name
diff --git a/documentation/cmd/start.md b/documentation/cmd/start.md
index 65d8e89..ee2339d 100644
--- a/documentation/cmd/start.md
+++ b/documentation/cmd/start.md
@@ -15,10 +15,10 @@ microcks start
 microcks start --port [Port you want]
 
 # Define your driver (by default docker)
-microcks start --driver [driver you wnat either 'docker' or 'podman']
+microcks start --driver [driver you want either 'docker' or 'podman']
 
 # Define name of your microcks container/instance
-microcks start --name [name of you container/instance]
+microcks start --name [name of your container/instance]
 
 # Auto remove the container on exit
 microcks start --rm
@@ -45,4 +45,3 @@ microcks start --rm
 | `--keycloakClientId`     | Keycloak Realm Service Account ClientId     |
 | `--keycloakClientSecret` | Keycloak Realm Service Account ClientSecret |
 | `--microcksURL`          | Microcks API URL                            |
-
diff --git a/pkg/config/localconfig.go b/pkg/config/localconfig.go
index 1e5eeda..b7e2035 100644
--- a/pkg/config/localconfig.go
+++ b/pkg/config/localconfig.go
@@ -345,7 +345,7 @@ func (l *LocalConfig) GetAuth(server string) (*Auth, error) {
 		}
 	}
 
-	return nil, fmt.Errorf("Auth for '%s' is undifined", server)
+	return nil, fmt.Errorf("Auth for '%s' is undefined", server)
 }
 
 func (l *LocalConfig) UpsertAuth(auth Auth) {
diff --git a/pkg/connectors/keycloak_client.go b/pkg/connectors/keycloak_client.go
index 5d6aeed..c53c376 100644
--- a/pkg/connectors/keycloak_client.go
+++ b/pkg/connectors/keycloak_client.go
@@ -29,7 +29,7 @@ import (
 	"golang.org/x/oauth2"
 )
 
-// KeycloakClient defines methods for cinteracting with Keycloak
+// KeycloakClient defines methods for interacting with Keycloak
 type KeycloakClient interface {
 	ConnectAndGetToken() (string, error)
 	ConnectAndGetTokenAndRefreshToken(string, string) (string, string, error)
diff --git a/pkg/connectors/microcks_client.go b/pkg/connectors/microcks_client.go
index 8ecd420..a384e0e 100644
--- a/pkg/connectors/microcks_client.go
+++ b/pkg/connectors/microcks_client.go
@@ -214,7 +214,7 @@ func (c *microcksClient) HttpClient() *http.Client {
 }
 
 func (c *microcksClient) GetKeycloakURL() (string, error) {
-	// Ensure we have a correct URL for retrieving Keycloal configuration.
+	// Ensure we have a correct URL for retrieving Keycloak configuration.
 	rel := &url.URL{Path: "keycloak/config"}
 	u := c.APIURL.ResolveReference(rel)
 

TheDerbiedOne avatar May 27 '26 02:05 TheDerbiedOne