diff --git a/README.md b/README.md index fee58f7..4ffdcec 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 bd24415..145cddb 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 8044603..b752e9d 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -28,7 +28,7 @@ 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]`, 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 f76884b..997428f 100644 --- a/pkg/connectors/microcks_client.go +++ b/pkg/connectors/microcks_client.go @@ -203,7 +203,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) @@ -241,7 +241,7 @@ func (c *microcksClient) GetKeycloakURL() (string, error) { authServerURL := configResp["auth-server-url"].(string) realmName := configResp["realm"].(string) - // Return a proper URL or 'null' if Keycloak is disables. + // Return a proper URL or 'null' if Keycloak is disabled. if enabled { return authServerURL + "/realms/" + realmName + "/", nil }