From 99aff69f9dd8c03e0833a548b0ea82d6ca0e44bd Mon Sep 17 00:00:00 2001 From: ardi1s <1205848407@qq.com> Date: Fri, 14 Aug 2026 11:07:29 +0800 Subject: [PATCH] docs: fix small typos Signed-off-by: ardi1s <1205848407@qq.com> --- cmd/login.go | 2 +- cmd/start.go | 4 ++-- documentation/cmd/login.md | 2 +- documentation/cmd/start.md | 2 +- pkg/config/localconfig.go | 2 +- pkg/connectors/keycloak_client.go | 2 +- pkg/connectors/microcks_client.go | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/login.go b/cmd/login.go index ac8a96e4..0b18677b 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -56,7 +56,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 ee5bf711..bfc83c89 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -50,10 +50,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]`, RunE: func(cmd *cobra.Command, args []string) error { if !output.IsTextOrJSON(outputFormat) { return errors.Wrapf(errors.KindUsage, "--output must be one of: text, json") diff --git a/documentation/cmd/login.md b/documentation/cmd/login.md index 0480944e..824d260f 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 e9c8dac1..6fb6579d 100644 --- a/documentation/cmd/start.md +++ b/documentation/cmd/start.md @@ -18,7 +18,7 @@ microcks start --port [Port you want] microcks start --driver [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 diff --git a/pkg/config/localconfig.go b/pkg/config/localconfig.go index b930704d..81854225 100644 --- a/pkg/config/localconfig.go +++ b/pkg/config/localconfig.go @@ -361,7 +361,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 185a8aac..4e53ee42 100644 --- a/pkg/connectors/keycloak_client.go +++ b/pkg/connectors/keycloak_client.go @@ -30,7 +30,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 05804aee..4006519f 100644 --- a/pkg/connectors/microcks_client.go +++ b/pkg/connectors/microcks_client.go @@ -273,7 +273,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)