Skip to content

Commit c3c48ec

Browse files
committed
docs: fixed small typos across the codebase
Signed-off-by: cotishq <tanishqp101204@gmail.com>
1 parent c01f511 commit c3c48ec

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ microcks [command] [flags]
7878

7979
| Flag | Description |
8080
| ------------------------ | ------------------------------------------- |
81-
| `-h, --help` | help for microck command |
81+
| `-h, --help` | help for microcks command |
8282
| `--config` | Path to Microcks config file |
8383
| `--microcks-context` | Name of the Microcks context to use |
8484
| `--verbose` | Produce dumps of HTTP exchanges |

cmd/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewLoginCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command
4040
Use: "login SERVER",
4141
Short: "Login into Microcks instance",
4242
Long: "Login into Microcks instance",
43-
Example: `microcks login http://locahost:8080
43+
Example: `microcks login http://localhost:8080
4444
4545
# Provide name to your logged in context (Default context name is server name)
4646
microcks login http://localhost:8080 --name

cmd/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ microcks start
2828
microcks start --port [Port you want]
2929
3030
# Define your driver (by default docker)
31-
microcks start --driver [driver you wnat either 'docker' or 'podman']
31+
microcks start --driver [driver you want either 'docker' or 'podman']
3232
3333
# Define name of your microcks container/instance
3434
microcks start --name [name of you container/instance]`,

pkg/config/localconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func (l *LocalConfig) GetAuth(server string) (*Auth, error) {
345345
}
346346
}
347347

348-
return nil, fmt.Errorf("Auth for '%s' is undifined", server)
348+
return nil, fmt.Errorf("Auth for '%s' is undefined", server)
349349
}
350350

351351
func (l *LocalConfig) UpsertAuth(auth Auth) {

pkg/connectors/keycloak_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"golang.org/x/oauth2"
3030
)
3131

32-
// KeycloakClient defines methods for cinteracting with Keycloak
32+
// KeycloakClient defines methods for interacting with Keycloak
3333
type KeycloakClient interface {
3434
ConnectAndGetToken() (string, error)
3535
ConnectAndGetTokenAndRefreshToken(string, string) (string, string, error)

pkg/connectors/microcks_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (c *microcksClient) HttpClient() *http.Client {
203203
}
204204

205205
func (c *microcksClient) GetKeycloakURL() (string, error) {
206-
// Ensure we have a correct URL for retrieving Keycloal configuration.
206+
// Ensure we have a correct URL for retrieving Keycloak configuration.
207207
rel := &url.URL{Path: "keycloak/config"}
208208
u := c.APIURL.ResolveReference(rel)
209209

@@ -241,7 +241,7 @@ func (c *microcksClient) GetKeycloakURL() (string, error) {
241241
authServerURL := configResp["auth-server-url"].(string)
242242
realmName := configResp["realm"].(string)
243243

244-
// Return a proper URL or 'null' if Keycloak is disables.
244+
// Return a proper URL or 'null' if Keycloak is disabled.
245245
if enabled {
246246
return authServerURL + "/realms/" + realmName + "/", nil
247247
}

0 commit comments

Comments
 (0)